Advertisement
here2share

# map_fn_demo.py

Oct 19th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. # map_fn_demo.py
  2.  
  3. zzz = [-2, -1, 0, 1, 2]
  4. print zzz
  5. z = list(map(abs, zzz))
  6. print z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement