Created
October 5, 2018 09:57
-
-
Save KatiGithub/85e28455c63ae8077e0048252c7aac10 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
count_odd = 0 | |
count_even = 0 | |
numbers = [1,2,3,4,5,6,7,8,9,10] | |
x = 0 | |
for x in numbers: | |
if x % 2 == False: | |
count_odd = count_odd + 1 | |
else: | |
count_even = count_even + 1 | |
print(count_odd) | |
print(count_even) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment