Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def only_odd(list):
- return list % 2 != 0
- print(list(filter(only_odd, [1,4,5,2,6,7,8])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement