Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def triple(a):
- return 3*a
- thrice = lambda x: 3*x
- these = [triple(i) for i in range(5) ]
- are = [(lambda x: 3*x)(i) for i in range(5) ]
- all = [thrice(i) for i in range(5) ]
- the = map(thrice, range(5))
- same = map(triple, range(5))
Add Comment
Please, Sign In to add comment