how to use try block statement and how to handle error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to use try block statement and how to handle error

12th Oct 2016, 10:20 AM
Arun yadav
Arun yadav - avatar
2 Answers
+ 2
See the related lesson. try: #code except ZeroDivisionError: #handling for ZeroDivisionError except (ValueError, TypeError): #handling for ValueError and TypeError except: #handling for other errors/exceptions
12th Oct 2016, 11:21 AM
Zen
Zen - avatar
- 3
hhhhhh and you expected from me to know something like that hhhh you are the nuts one arent you hhhh
21st Oct 2016, 8:10 PM
abdiftah
abdiftah - avatar