I just wrote a code for the if-else control statement,It is as follows:
y = input("Enter a number : ")
x = input("Enter another one: ")
if (x > y) and (x == 6):
print(x)
else:
print(y)
I inputed y = 3 and x = 6 , The answer I get is 6.
What could be my error?
Aucun commentaire:
Enregistrer un commentaire