Python Program to Find Numbers Divisible by Another Number

To understand this example, you should have the knowledge of the following Python programming topics:


In the program below, we have used anonymous (lambda) function inside the filter() built-in function to find all the numbers divisible by 13 in the list.

Source Code

Output

Numbers divisible by 13 are [65, 39, 221]

Learn more about filter() at Python filter().