+ 1
Who can help me?
pin=int(input()) # место для вашего кода try: print("Pin code is created") except ValueError: print("Please enter a number") Even without looking at the except module, the program displays an error, how can this be fixed?
2 Respostas
+ 6
John List
You have to take input in try block otherwise you will always get this problem.
# место для вашего кода
try:
pin = int(input())
print("Pin code is created")
except ValueError:
print("Please enter a number")
+ 2
Thank you for your help!