Skip to content

Instantly share code, notes, and snippets.

@KatiGithub
Created October 5, 2018 09:57
Show Gist options
  • Save KatiGithub/85e28455c63ae8077e0048252c7aac10 to your computer and use it in GitHub Desktop.
Save KatiGithub/85e28455c63ae8077e0048252c7aac10 to your computer and use it in GitHub Desktop.
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