Advertisement
Lord_Emaz

Untitled

Feb 28th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1.  
  2. def only_odd(list):
  3.     return list % 2 != 0
  4.  
  5. print(list(filter(only_odd, [1,4,5,2,6,7,8])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement