Created
September 19, 2020 14:56
-
-
Save lemonlatte/9469c5c6c847b85f81c1e4c2cc86f077 to your computer and use it in GitHub Desktop.
check odd number
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
#!/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