Guest User

Untitled

a guest
May 23rd, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
  2.  
  3. new_list = [item for item in a if item % 2 == 0]
  4. print(new_list)
Add Comment
Please, Sign In to add comment