Tuesday, September 18, 2018
Python Tutorial for Beginners 37 - Try Except Else Finally (Python Excep...
In this Python Tutorial for Beginners video I am going to show How to use Try Except Else Finally in Exception handling in Python.
else: statements executed if no exception
finally:clean-up statements always executed
A finally clause is always executed before leaving the try statement. A finally statements is guaranteed to be executed before leaving the try statement, whether an exception has occurred or not.
What are these exceptions? An exception is an event, which happens while the execution of a program, that disrupts the normal flow of the program. When some error error occurs an exception is raised. Python Exceptions are run-time errors. Exceptions are used to deal with extraordinary errors. Normally if we do not use Exception handling the execution of program stops as soon as exception is thrown.By default, the interpreter handles exceptions by stopping the program and printing an error message.
#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
-------------------Online Courses to learn----------------------------
Blockchain Course - http://bit.ly/2Mmzcv0
Big Data Hadoop Course - http://bit.ly/2MV97PL
Java - https://bit.ly/2H6wqXk
C++ - https://bit.ly/2q8VWl1
AngularJS - https://bit.ly/2qebsLu
Python - https://bit.ly/2Eq0VSt
C- https://bit.ly/2HfZ6L8
Android - https://bit.ly/2qaRSAS
Linux - https://bit.ly/2IwOuqz
AWS Certified Solutions Architect - https://bit.ly/2JrGoAF
Modern React with Redux - https://bit.ly/2H6wDtA
MySQL - https://bit.ly/2qcF63Z
----------------------Follow---------------------------------------------
My Website - http://www.codebind.com
My Blog - https://goo.gl/Nd2pFn
My Facebook Page - https://goo.gl/eLp2cQ
Google+ - https://goo.gl/lvC5FX
Twitter - https://twitter.com/ProgrammingKnow
Pinterest - https://goo.gl/kCInUp
Text Case Converter - https://goo.gl/pVpcwL
-------------------------Stuff I use to make videos -------------------
Stuff I use to make videos
Windows notebook – http://amzn.to/2zcXPyF
Apple MacBook Pro – http://amzn.to/2BTJBZ7
Ubuntu notebook - https://amzn.to/2GE4giY
Desktop - http://amzn.to/2zct252
Microphone – http://amzn.to/2zcYbW1
notebook mouse – http://amzn.to/2BVs4Q3
------------------Facebook Links ----------------------------------------
http://fb.me/ProgrammingKnowledgeLear...
http://fb.me/AndroidTutorialsForBegin...
http://fb.me/Programmingknowledge
http://fb.me/CppProgrammingLanguage
http://fb.me/JavaTutorialsAndCode
http://fb.me/SQLiteTutorial
http://fb.me/UbuntuLinuxTutorials
http://fb.me/EasyOnlineConverter
List of exception in Python
CLASSES
object
BaseException
Exception
ArithmeticError
FloatingPointError
OverflowError
ZeroDivisionError
AssertionError
AttributeError
BufferError
EOFError
ImportError
LookupError
IndexError
KeyError
MemoryError
NameError
UnboundLocalError
OSError
BlockingIOError
ChildProcessError
ConnectionError
BrokenPipeError
ConnectionAbortedError
ConnectionRefusedError
ConnectionResetError
FileExistsError
FileNotFoundError
InterruptedError
IsADirectoryError
NotADirectoryError
PermissionError
ProcessLookupError
TimeoutError
ReferenceError
RuntimeError
NotImplementedError
RecursionError
StopAsyncIteration
StopIteration
SyntaxError
IndentationError
TabError
SystemError
TypeError
ValueError
UnicodeError
UnicodeDecodeError
UnicodeEncodeError
UnicodeTranslateError
Warning
BytesWarning
DeprecationWarning
FutureWarning
ImportWarning
PendingDeprecationWarning
ResourceWarning
RuntimeWarning
SyntaxWarning
UnicodeWarning
UserWarning
GeneratorExit
KeyboardInterrupt
Partner Sites
VideoToGifs.com
EasyOnlineConverter.com
SqliteTutorials.com
Top Online Courses From ProgrammingKnowledge
Python Course http://bit.ly/2vsuMaS
Java Coursehttp://bit.ly/2GEfQMf
Bash Coursehttp://bit.ly/2DBVF0C
Linux Coursehttp://bit.ly/2IXuil0
C Course http://bit.ly/2GQCiD1
C++ Coursehttp://bit.ly/2V4oEVJ
PHP Coursehttp://bit.ly/2XP71WH
Android Coursehttp://bit.ly/2UHih5H
C# Coursehttp://bit.ly/2Vr7HEl
JavaFx Coursehttp://bit.ly/2XMvZWA
NodeJs Coursehttp://bit.ly/2GPg7gA
Jenkins Course http://bit.ly/2Wd4l4W
Scala Coursehttp://bit.ly/2PysyA4
Bootstrap Coursehttp://bit.ly/2DFQ2yC
MongoDB Coursehttp://bit.ly/2LaCJfP
QT C++ GUI Coursehttp://bit.ly/2vwqHSZ