Who can help me? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 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")
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