Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Program to Find Numbers Divisible by Another Number

# Take a list of numbers
my_list = [12, 65, 54, 39, 102, 339, 221,]

# use anonymous function to filter
result = list(filter(lambda x: (x % 13 == 0), my_list))

# display the result
print("Numbers divisible by 13 are",result)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Python #Program #Find #Numbers #Divisible #Another #Number
ADD COMMENT
Topic
Name
8+2 =