Skip to content

Instantly share code, notes, and snippets.

@webbrowser11
Created February 5, 2025 00:28
Show Gist options
  • Select an option

  • Save webbrowser11/442e1ffde6b2b6c7296497142beec0f4 to your computer and use it in GitHub Desktop.

Select an option

Save webbrowser11/442e1ffde6b2b6c7296497142beec0f4 to your computer and use it in GitHub Desktop.
Simple Modulus Calculator
remainder = int(input("number: ")) % 2
if remainder == 1:
print("that number you entered is odd.")
else:
print("that number you entered was even.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment