python code
Gusses the number
print("Guess the number:")
i = 0
while i < 9 :
i = i + 1
n = int(input("enter a guess the number you think :"))
if n > 18:
print("guesses the number is the greater the value ", 9 - i)
elif n < 18:
print("guesses the number is the less then value the value ", 9 - i)
elif n == 18:
print("your guess is the right ")
break
else:
print("game is over ")
Nice
ReplyDelete