Guest User

Untitled

a guest
Nov 15th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  2.  
  3. for i in a:
  4. if i % 2 == 0 and i != 0:
  5. print(i)
  6.  
  7. # Output:
  8. # 2
  9. # 4
  10. # 6
  11. # 8
  12. # 10
  13. # 12
Add Comment
Please, Sign In to add comment