correctNumber=int(input("please enter the number "))
running=True
while running==True:
guess=int(input("enter your guess:"))
if guess==correctNumber:
print("congratulations,, you guessed it!")
running=False
elif guess>correctNumber:
print("wrong number, your number is bigger than correct number")
else: print("wrong number, your number is smaller then correct number")
using while loop:
need an explanation for this answer? contact us directly to get an explanation for this answer