I'm still in the early stages of learning python so this is probably an easy question that I just can't find the answer for. I'm trying to take user input to define 2 variables and compare them using > and < in an if statement.
line 6-11 in the code below I've also tried ...is False: and also y > x is True
print("what is x")
x = int(input('> ))
print("what is y")
y = int(input('> ))
if x > y is True:
print("x > y")
elif x > y is not True:
print("y > x")
else:
print("whatever")
If x > y then it says y > x. If y > x, it prints the else condition.