Skip to content

Commit d9a620d

Browse files
Merge pull request raviprakashdev#39 from anshushivam2018/master
Create PythonProgramtoFindNumbersDivisiblebyAnotherNumber
2 parents ebd7d7d + 25ce734 commit d9a620d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Take a list of numbers
2+
my_list = [12, 65, 54, 39, 102, 339, 221,]
3+
4+
# use anonymous function to filter
5+
result = list(filter(lambda x: (x % 13 == 0), my_list))
6+
7+
# display the result
8+
print("Numbers divisible by 13 are",result)

0 commit comments

Comments
 (0)