11 lines
191 B
Python
11 lines
191 B
Python
# 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))
|