0
Why does this code return an error for me in the code playground?
# Python language guess game import random print('Hi there, What is your name?') name = input() secretNumber = random.randint(1, 100) print('Well, ' + name + ' I am thinking of a number between 1 and 100') for guessesTaken in range(1, 6): print('Take a guess please.') guess = int(input()) if guess < secretNumber: print('That guess is too low!') elif guess > secretNumber: print('That guess is too high!') else: break if guess == secretNumber: print('Good job,' + name + '! You guessed correctly') else: print('Nope, the number i was thinking is ' + str(secretNumber)+ ', Better luck next time!')
3 Answers
0
I did @james