Whats wrong??????
When I run my code on IDLE its correct but on solo learn it gives an error! Please help me. import random guessesTaken =0 print ("Hello! What is your name? ") myName = input('Whats your name?") number = random.randint(1, 20) print ("Well, {}, I am thinking of a number between 1 and 20." .format(myName)) while (guessesTaken < 6): print ("Take a guess.") guess = int(input()) guessesTaken += 1 if guess < number: print ("Your guess is too low.") if guess > number: print ("Your guess is too high.") if guess == number: break if guess == number: guessesTaken = str(guessesTaken) print ("Good job, {} ! You guessed my number in {} guesses!" .format(myName, guessesTaken)) if guess != number: number = str(number) print ("Nope. The number I was thinking of was {}" .format(number))