Skip to content

Instantly share code, notes, and snippets.

@akaomy
Created November 14, 2018 23:15
Show Gist options
  • Save akaomy/abb3a09b881d335366194dbd20f4479d to your computer and use it in GitHub Desktop.
Save akaomy/abb3a09b881d335366194dbd20f4479d to your computer and use it in GitHub Desktop.
a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
for i in a:
if i % 2 == 0 and i != 0:
print(i)
# Output:
# 2
# 4
# 6
# 8
# 10
# 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment