My code looks correct to me,but it does not! I can never get it to display the winning result.(It's probably because I did not indent properly but I am not sure how.)
It gives me the error
Oops, try again. Did you include an else for the while loop?
Replace this line with your code. from random import randint guesses_left = 3 print (random_number)#Debug random_number = randint(1, 10) while guesses_left > 0: guess = int(raw_input("Your guess:")) if guess == random_number: print("You Win!") break else: print("You Lose") guesses_left -= 1