Skip to content

Instantly share code, notes, and snippets.

@Just-Simple-59
Last active June 22, 2021 18:10
Show Gist options
  • Save Just-Simple-59/1ac4f3547df845d036586a491d5767b5 to your computer and use it in GitHub Desktop.
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.
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