Last active
June 22, 2021 18:10
-
-
Save Just-Simple-59/1ac4f3547df845d036586a491d5767b5 to your computer and use it in GitHub Desktop.
Ask the user for a number. Depending on whether the number is even or odd, print out an appropriate message to the user.
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
Number = int(input("Enter a Random Number\n")) | |
check = Number % 2 | |
if check == 0: | |
print("The number you choose" + ' ' + str(Number) + ' ' + "is even") | |
else: | |
print("The number you choose" + ' ' + str(Number) + ' ' + "is odd") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment