+ 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?

10th Dec 2020, 4:28 PM
John List
2 Respuestas
+ 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")
10th Dec 2020, 4:35 PM
A͢J
A͢J - avatar
+ 2
Thank you for your help!
10th Dec 2020, 4:43 PM
John List