Created
November 6, 2021 14:20
-
-
Save moulik-source/0e75fe182b5c263fd79b6b9aea71f943 to your computer and use it in GitHub Desktop.
odd or even in python
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
num = int(input("Enter a number: ")) | |
if (num % 2) == 0: | |
print("{0} is Even".format(num)) | |
else: | |
print("{0} is Odd".format(num)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment