Guest User

Untitled

a guest
Mar 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. integers = [-1, -2, -5, 0, 1, 6, 7]
  2. naturals = []
  3. for i in integers:
  4. if i >= 0:
  5. naturals.append(i)
  6.  
  7. print naturals
Add Comment
Please, Sign In to add comment