While(correct_count) I need to fix this print("Input Error")
When you press enter without a fixed income power
It goes like this.What should I do?
python
If you read it carefully, a ValueError is occurring because you are trying to convert a string to a number. You can deal with ValueError like this.
try:
int("a")
except ValueError:
print ("Please enter a number")
© 2025 OneMinuteCode. All rights reserved.