Answers for "find number divisible by 2 in an array python"

0

find number divisible by 2 in an array python

num_list = [45, 55, 60, 37, 100, 105, 220]
# use anonymous function to filter
result = list(filter(lambda x: (x % 15 == 0), num_list))
print("Numbers divisible by 15 are",result)
Posted by: Guest on January-11-2021

Code answers related to "find number divisible by 2 in an array python"

Python Answers by Framework

Browse Popular Code Answers by Language