Best Practices for Error Handling in Python (try/except/else/finally)

preview_player
Показать описание
This video will go over the best practices for error and exception handling in Python. We will cover best practices for using try/except/else/finally.

📚 MY FAVOURITE PROGRAMMING BOOKS 📚

⌨️ MY DESK SETUP (I ACTUALLY USE) ⌨️

📹 CREATOR SETUP 📹

📱 GET IN TOUCH:

🐍 ANACONDA ANIMATION

🎬 WATCH NEXT

❤️ LIKE
It takes me a long time to make these videos, please give the video a thumbs up 💪

✅ SUBSCRIBE:

ℹ️ ABOUT THIS VIDEO:
In this video, I'll go over the best practices for error and exception handling in Python. In Python programming, you'll come across errors and exceptions in many places. This includes error handling in requests, flask, for loops and IO related such as file not found. Understanding how to handle errors in Python starts with understanding try/except/else/finally so we go over those in this video. Errors are used interchangeably with exceptions in Python so we will go over analysing exceptions in Python, getting the exception types, stack traces and tracebacks.

This is a jam packed tutorial and error handling is an essential topic for every Python programmer.

Python is the world's most popular programming language in 2020. Python is a great programming language that's used by the likes of Google, Facebook, Twitter, Quora and pretty much every big tech company you can name. It's used everywhere, whether it's in competitive programming, coding interviews, areas of data science, machine learning and algorithmic trading. Follow me as I continue to produce Python tutorials that will help you become a rockstar programmer. Subscribe for all tutorials and videos related to web development, full stack engineering, react native and much more.

💁🏽‍♂️ WHO AM I:
I'm Imdad, a startup founder and CTO in London, UK. I love making videos about life as a technical cofounder, teaching people to code through cool programming projects and productivity.

I even teach Python tutorials as it is a great programming language that's used by the likes of Google, Facebook, Twitter, Quora and pretty much every big tech company you can name.

#PythonErrorHandling #PythonExceptionHandling #TryExceptPython

Disclaimer: The links above are affiliate links. If you decide to purchase any of these products through my links, I'll receive a small commission at no extra cost to you. This helps support my channel, and I only recommend products that I've personally used and believe in.
Рекомендации по теме
Комментарии
Автор

Thankyou, my python instructor threw me in to a project (that required caching KeyErrors) without properly explaining this, you made this concept very clear!

MadDogCat
Автор

Very nice explanation. Taught me the exact thing which I was looking for.

amiteshshukla
Автор

I am the 100th like! Thanks for sharing and explaining PYTHON error handling very clearly!

yangwu
Автор

I subscribed, you are awesome at explaining complex ideas, more videos for the exceptional

rebeccawaweru
Автор

Amazing video, thank you so much. Great energy and clear explanation, what else can we ask for?

Thank you!!!!

albertoramos
Автор

Thanks for this detailed explanation. This was exactly what I was looking for (including "Finally:") :😜

Doshinkyo
Автор

I am a basic learner in python but with this video I learn a lot thank you 🙇🙇🙇😊

uktrustmusic
Автор

sorry for being spiteful, but in my opinion try statement should only be used for nondeterministic exceptions, i.e. the ones that you cannot anticipate in advance, usually while accessing external systems like files or databases, and not for deterministic exceptions. missing key can be anticipated in advance. therefore you should use an if statement here instead.

michalbotor
Автор

The link is dead for me to download the book, imdad.

RealRadaiZabala
Автор

I think this was more an introduction to exceptions in python (which was nicely done) than a best practice course about them. As you say yourself you do not know how to use "finally" in useful cases and so on (this is ok, but the tittle is misleading) . The tittle and thumbnail could be changed to better reflect this.
Nice video nonetheless

socomajor
Автор

hey i have no idea how to code or anything maybe could i ever get into a discord call with you or something you could possibly teach me the basics when your not busy my discord is Darious117#1815 just incase

DariOscondones
join shbcf.ru