All Im trying to do is make n a random number, if the user gets it correct it outputs "You got it!" but no matter what is always displays as if I got it wrong, even when I answered n
import random
n = random.randint(1,2)
guess = input("1 or 2?")
if guess == n:
print("You won!")