Help number guessing game | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help number guessing game

It is saying there is an error on line 15. Can someone explain why? #a random number game import random play = "Y" counter = 1 guess = 0 while play == "Y": number = random.randint(0,10000) guess == int(input("please guess a number between 0 and 10,000 ")) if guess < number: guess == int(input("your guess is too low, try again. ")) counter += 1 elif guess > number: guess == int(input("your guess is too high, try again. ")) counter +=1 else: "you guess the number correctly in",counter,"tries." play = input("Do you want to play again? press Y/N")

24th Mar 2020, 10:44 PM
Lucy-jane Carey
Lucy-jane Carey - avatar
0 Answers