Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
python logic getting started
from cs50 import get_int
# get input from the user
x = get_int("x: ")
y = 42
if x < y:
print("x is less than y")
elif x > y:
print("x is greater than y")
print ("x is equal to y")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment