summaryrefslogtreecommitdiff
path: root/progs/dont_care/a789.py
blob: 06bda8529f9acc6c7cb5a941d301816fa3a7c9f2 (plain)
1
2
3
def filter_oddnumbers(nums):
 odd_nums = list(filter(lambda x: x%2 != 0, nums))
 return odd_nums