Guest User

Untitled

a guest
Aug 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def triple(a):
  2. return 3*a
  3.  
  4. thrice = lambda x: 3*x
  5.  
  6. these = [triple(i) for i in range(5) ]
  7. are = [(lambda x: 3*x)(i) for i in range(5) ]
  8. all = [thrice(i) for i in range(5) ]
  9. the = map(thrice, range(5))
  10. same = map(triple, range(5))
Add Comment
Please, Sign In to add comment