Python Exception Handling | Python Sinhala Tutorial Episode 28 | SL Android #slandroid #python
#exceptionhandling #python #kuppiya #android
Python Exception Handling | Python Sinhala Tutorial Episode 28 | SL Android #slandroid #python
⚙️ Python Exception
An exception can be defined as an unusual condition in a program resulting in the interruption in the flow of the program.
Whenever an exception occurs, the program stops the execution, and thus the further code is not executed. Therefore, an exception is the run-time errors that are unable to handle to Python script. An exception is a Python object that represents an error
Python provides a way to handle the exception so that the code can be executed without any interruption. If we do not handle the exception, the interpreter doesn't execute all the code that exists after the exception.
Python has many built-in exceptions that enable our program to run without interruption and give the output. These exceptions are given below:
⚙️ Common Exceptions
Python provides the number of built-in exceptions, but here we are describing the common standard exceptions. A list of common exceptions that can be thrown from a standard Python program is given below.
ZeroDivisionError: Occurs when a number is divided by zero.
NameError: It occurs when a name is not found. It may be local or global.
IndentationError: If incorrect indentation is given.
IOError: It occurs when Input Output operation fails.
EOFError: It occurs when the end of the file is reached, and yet operations are being performed
-~-~~-~~~-~~-~-
Please watch: "How to code a simple calculator ( Project 01) |C Programming සිංහල Tutorial Episode 25 |SL Android"
https://www.youtube.com/watch?v=A6nvSvDcsUA
-~-~~-~~~-~~-~-
Other Videos By SL Android
Other Statistics
Exception Statistics For SL Android
There are 411 views in 1 video for Exception. Less than an hour worth of Exception videos were uploaded to his channel, making up less than 0.68% of the total overall content on SL Android's YouTube channel.