7 lines
139 B
Python
7 lines
139 B
Python
# filter.lambda.py
|
|
def get_multiples_of_five(n):
|
|
return list(filter(lambda k: not k % 5, range(n)))
|
|
|
|
|
|
print(get_multiples_of_five(50))
|