Aug-18-2020, 03:24 AM
guess = input("guess a number between 1 and 50 ")
guess = int(guess)
if guess == 31:
print("yes!The correct answer is " + str(guess) )
else:
print("wrong,try again ")
this is my code,but I dont know how to loop it,can someone please give suggestions on how to fix it(im a 12 year old kid that just started,so I need some help)
guess = int(guess)
if guess == 31:
print("yes!The correct answer is " + str(guess) )
else:
print("wrong,try again ")
this is my code,but I dont know how to loop it,can someone please give suggestions on how to fix it(im a 12 year old kid that just started,so I need some help)