You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("Please think of a number between 0 and 100!")
low = 0
high = 100
guess = (low + high) // 2
while True:
print("Is your secret number " + str(guess) + "?")
response = input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly.")
if response == 'c':
print("Game over. Your secret number was: " + str(guess))