0

what is try except in python? please give me for examples

3rd Dec 2018, 7:41 PM
kokito
3 odpowiedzi
+ 10
You're welcome I'm glad it helped!
3rd Dec 2018, 7:46 PM
Uni
Uni - avatar
+ 9
Say you want to divide 2 numbers but you got this input: a=2 b=0 So if you do a/b you'll obtain an error. So you'll wrap this between try/except and you have no more errors (well actually you do but you handled it) https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2441/
3rd Dec 2018, 7:44 PM
Uni
Uni - avatar
0
thank you
3rd Dec 2018, 7:46 PM
kokito