Advertisement
here2share

# b_map.py

Jan 20th, 2020
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. # b_map.py
  2.  
  3. x = [1, 2, 3]
  4. y = list(map(lambda x: x*3, x)) # prints out [3, 6, 9]
  5. print(y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement