n = 18
print(“please guess the no in 9 tries”)
no_of_guess = 1
while(no_of_guess < 10):
guess = int(input(“please guess the no\n”))
if guess <= 16 :
print(“your guess is wrong please in increase the no”)
elif guess >= 20 :
print(“your guess is wrong please decrease the no”)
elif guess == 17 :
print(“you are close increase the no a bit”)
elif guess == 19 :
print(“you are close decrease the no a bit”)
# elif no_of_tries == 0:
# print (“game over”)
# break
else :
print(“you won you choose the right no in”,no_of_guess,”tries”)
break
no_of_tries= (9 – no_of_guess)
no_of_guess = no_of_guess + 1
print(no_of_tries,”tries left”)
if no_of_tries == 0:
print(“game over”)
#Here i made a number guessing game uzing simple if esle statement s and while loop