Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> f = lambda x: x**2
- >>> f(2)
- 4
- >>> import math
- >>> f = lambda x: math.sqrt(x)
- >>> f(4)
- 2.0
- >>> f = lambda x,y: x - y
- >>> f(6, 2)
- 4
- >>> f = lambda x,y: x + y
- >>> f(4, 2)
- 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement