Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created May 30, 2018 18:58
Show Gist options
  • Select an option

  • Save calthoff/75c61a0bbdaebf56e4b45bd7a04203e9 to your computer and use it in GitHub Desktop.

Select an option

Save calthoff/75c61a0bbdaebf56e4b45bd7a04203e9 to your computer and use it in GitHub Desktop.
n = 12
if n % 2 == 0:
print("n is even.")
else:
print("n is odd.")
n = 11
n = int(n)
if n % 2 == 0:
print("n is even.")
else:
print("n is odd.")
n = 10
n = int(n)
if n % 2 == 0:
print("n is even.")
else:
print("n is odd.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment