Created
November 14, 2018 23:15
-
-
Save akaomy/abb3a09b881d335366194dbd20f4479d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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