0

What is try and except in Python

please explain in briefly, I'm not understanding.

31st Dec 2017, 3:51 AM
Yernagula Hemanth Rama Krishna
Yernagula Hemanth Rama Krishna - avatar
1 Odpowiedź
0
they are used for exception handling... the control flow goes to the statements which are written in the try block if there is no error find in the try block then it goes to the statements after the except block if any error found in the try block then it goes to the statements which are written in the except block even there are more number of except blocks based on the name of the error
31st Dec 2017, 4:24 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar