0
what is try except in python? please give me for examples
3 Réponses
+ 10
You're welcome I'm glad it helped!
+ 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/
0
thank you