+ 1
Hpw does the "try" work in python?
4 Respuestas
+ 3
You simply wrap code in try block that might throw an Exception, for example division by zero will throw an exception. Try block is followed by except keyword which will handle exception. This all is used to not crash your program
+ 6
Keep learning our Python tutorial.
https://www.sololearn.com/learn/Python/2441/
+ 2
Used to handle exceptions in a way that the program is not terminated when one is encountered.
+ 1
Thank you