Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # map_fn_demo.py
- zzz = [-2, -1, 0, 1, 2]
- print zzz
- z = list(map(abs, zzz))
- print z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement