0
How can I get a print statement governed by 'except: ' to print? I can't find what I'm doing wrong.
6 odpowiedzi
+ 2
or you put everything into the try block except the error printing.
+ 1
To your second question, that's the playgrounds guilt. If you run it on desktop, it should work fine.
+ 1
Yes, as @Jonas Schröter said, your code first tries to convert string into integer and raises an error. So you need to first input Number as a string, and then convert it to integer inside the try block
0
The problem is that the Error is raised in ypur first line of code.
0
Thanks guys. Your suggestions worked
0
Glad I could help😊