print("Gissing number from 80 to 100")
while True:
print()
number = int(input("What's your guss? "))
if number == > 100
print("too low, try again ")
elif number == < 100
print("too high,try again")
elif number == 100
print ("Good job your guss is righ")
else :
print ("Deeemn, goob bay")
exit()
print("Gissing number from 80 to 100")
while True:
print()
number = int(input("What’s your guss? "))
if number => 100:
print("too low, try again")
elif number =< 100:
print("too high,try again")
elif number == 100:
print ("Good job your guss is righ")
else:
print ("Deeemn, goob bay")
exit()
@SnakeyKing:
While it is good to give the correct code to the OP, it is better to nudge them in the right direction rather than just giving OP the answer so that they will learn their lesson and learn to not make the same mistake in future programs.
print("Gissing number from 80 to 100")
while True:
print()
number = int(input("What's your guss? "))
if number => 100 :
print("too low, try again ")
elif number =< 100 :
print("too high,try again")
elif number == 100 :
print ("Good job your guss is righ")
else :
print ("Deeemn, goob bay")
exit()
@khdyjhlqsmy I found your problem, your print() and number =, are indented too far. Try this:
print("Gissing number from 80 to 100")
while True:
print()
number = int(input("What's your guss? "))
if number => 100 :
print("too low, try again ")
elif number =< 100 :
print("too high,try again")
elif number == 100 :
print ("Good job your guss is righ")
else :
print ("Deeemn, goob bay")
exit()