This commit is contained in:
adii1823
2021-10-28 17:37:54 +05:30
parent 8b802c5c62
commit ee641c189f
49 changed files with 601 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# filter.regular.py
def is_multiple_of_five(n):
return not n % 5
def get_multiples_of_five(n):
return list(filter(is_multiple_of_five, range(n)))
print(get_multiples_of_five(50))