Skip to content

Instantly share code, notes, and snippets.

@lemonlatte
Created September 19, 2020 14:56
Show Gist options
  • Save lemonlatte/9469c5c6c847b85f81c1e4c2cc86f077 to your computer and use it in GitHub Desktop.
Save lemonlatte/9469c5c6c847b85f81c1e4c2cc86f077 to your computer and use it in GitHub Desktop.
check odd number
#!/usr/bin/python
def main():
n = input("input a number:")
n = int(n)
if n % 2 == 0:
print(True)
else:
print(False)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment