exception error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

exception error

1. must the type of error be stated immediately after the except keyword? 2. if yes, why?

11th Apr 2017, 10:37 AM
Bright Edward
3 Answers
+ 11
@Bright If Ahri said nope, than I'm no one to say yep! Python Unfollowed!
11th Apr 2017, 10:45 AM
Dev
Dev - avatar
+ 10
nope
11th Apr 2017, 10:39 AM
Ahri Fox
Ahri Fox - avatar
+ 5
No, but it is a recommended thing to do. Otherwise you don't know what kind of error it was, which might hit you back later in the code.
11th Apr 2017, 11:39 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar