Do we have to know the exact exception for the except statement to work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Do we have to know the exact exception for the except statement to work?

30th Jun 2016, 6:18 PM
Chukuka Henry
Chukuka Henry - avatar
2 Answers
0
Yes, if you want execptions you want to run code; no, if you want block of code run in all exceptions.
5th Jul 2016, 7:35 PM
Sławek Śpiewak
Sławek Śpiewak - avatar
0
nice!
5th Jul 2016, 9:33 PM
Boris Andrés Litardo Moyano
Boris Andrés Litardo Moyano - avatar