Python Exception Handling (Use Try..Except to Catch Errors!) #25

preview_player
Показать описание
In Python, errors that occur during the runtime of a program—even if the code is syntactically correct—are called exceptions.

In this video, we will learn about exceptions in detail and then we will see how we can handle them in Python using the try...except statement. In Python, errors that occur during the runtime of a program—even if the code is syntactically correct—are called exceptions. For example, we get a ZeroDivisionError if we try to divide a number by zero in Python.

~

Watch our videos and revise them with our Python App!

Timestamps:
0:00 Intro
0:39 Understanding Exceptions
1:52 Handling Exceptions with try...except
2:35 Example of Exception Handling
5:02 Handling Specific Exceptions
8:01 Python try...finally

Find Programiz elsewhere:
-------------------------------------------------

Python Exception Handling (Use Try..Except to Catch Errors!) #25

#python #learnprogramming #programiz
Рекомендации по теме
Комментарии
Автор

🔥Finding it Damn Hard to Understand Python?
Learn to code—the right way—with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!

programizstudios
Автор

Let's all appreciate amount of time invested in making these videos

tusharjajodia
Автор

Ur explanation of exceptions is Exceptionally great!!

chaitanyakumarboddu
Автор

I am attending Community College on Python and I can not thank you enough for posting this exceptionally wonderful video when i have used the college books provided to me, Googled information on this topic and still was utterly confused.

cedricanderson
Автор

Simple and easy to understand. Thank you!

shakirabowen
Автор

Thanks for all your efforts "Team Programiz" 🙌

umeshnagar
Автор

I love these videos so much! Thank you for making them. :)

Whatthetrash
Автор

Here for my daily session of learning python, great video!

pinkshoelace
Автор

I have an exam tomorrow, hope this clutches up!

walexgaming
Автор

Awesome video creation, great explanation, thank you very much for your time.

Ashok-oelo
Автор

Awesome video, keep up the great work! :)

ComputerScienceSimplified
Автор

Hello, thank you for the video but i have a question. Does the try-except functionality will work with any type of error? I ask because this seems like a neat way of avoiding a longer code with an if structure.

estebangamez
Автор

Bro, make a video on constructors ❤️, please

blackshark
Автор

Here is one small question. How to change this program about numerator and denominator in that way, when in the case of division by zero it will ask once again to enter numerator and denominator, and only in the case of correct answer it will say "The program ends". Thank you.

pavelboldin
Автор

what's the difference between except : and except Exception as e: ? please tell me the answer as soon as

ZeeHamz
Автор

but the code inside finally can also be written outside the finally block .
so what is the need of finally block?

praveenbabu
Автор

hai buddha half statu
no shown figures
is buddhist people heart and
our master lord buddha


is not decorated
is greate philosophyer


bro please exite the half statu
bro

🙏

swapnilkamble
Автор

Bro your videos would be better if you stop turning your head left and right every two seconds.. It is annoying and I cannot keep my focus on screen.

certifiedsmartass