Error with input Your own while / else


#1

I am getting error while running in while loop. I am attaching the screen along with the message.


#2
Error on line 9:
guess = input()

Try

guess=int(input("Enter a number: "))

#4

It was working. Problem seems to me was my keyboard it seems to have issue with my num lock. Sry for raising false alarm.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.