Guest User

Untitled

a guest
Jun 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. l = [1,2,3,4]
  2. l = filter(lambda x: x < 3, l)
  3. print l # [1,2]
  4.  
  5. l = [1,2,3,4]
  6. l = map(lambda x: x < 3, l)
  7. print l # [True,True,False,False]
Add Comment
Please, Sign In to add comment