In python, sometimes an error arises and you cant do anything about it, and to overcome that you can use error exception feature of python. Its syntax is:
try:
Code which might give error
except #Error which might arise:
Code to run if error arises
else:
Code to run if no error arises
If your code might arise multiple errors, then you can write as:
try:
Code which might give errors
except (error1, error2, error3, ...):
Code to run if errors arises
else:
Code to run if no error arises
This Program Code:-
Github: https://github.com/Kunal-Attri/Python...
Drive: https://drive.google.com/file/d/1Ejmj...
All Python Codes:-
Github: https://github.com/Kunal-Attri/Python...
Drive: https://drive.google.com/drive/folder...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Subscribe to us for more videos!!!
Music: Axol x Alex Skrindo - You
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python: • Python
Pokemon FireRed: • Pokemon FireRed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you own any rights to the content we use in our videos and want us to provide credits or remove the content , kindly contact us at [email protected] . We will solve it out with a hypothetic cup of tea(●'◡'●) .
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Instagram :- / kunal.attri_
Github:- https://github.com/kunal-attri
Like And Subscribe our Channel.......