Error Handling | try...except...finally block | Python for Data Science | Learn Python

Publicado em: 11 Novembro 2020
no canal de: Tech Programmer
97
like

In this video, I explain about how we can handle different error situations in our code. Python provides convenient try..except and finally blocks to handle different scenarios.

In this video, I start with very simple try...except block to handle every kind of error in single except block. I also demonstrate different ways to handle multiple different types of errors in separate except blocks.

Later in the video, I discuss about how we can make use of "raise" keyword to throw our own custom errors when an abnormal or unexpected situation arises in code. Finally, I talk about how we can handle files using try...except and finally block to ensure that we are not leaving any unclosed resources.

Introduction [0:01]
Different kinds of errors [1:38]
Simple try...except example [4:13]
Handling multiple errors [5:34]
Handling different errors in same except block [9:25]
'as' keyword in Python [12:11]
Raise custom errors [13:26]
try...except...finally demo in Python code [16:14]

If you like our content, click on SUBSCRIBE button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Facebook Link:   / techprogrammer1  
Twitter Link:   / techprogrammer1  
Tumblr Blog: https://www.tumblr.com/blog/techprogr...


Nesta página do site você pode assistir ao vídeo on-line Error Handling | try...except...finally block | Python for Data Science | Learn Python duração 16 minuto 40 segundo em boa qualidade , que foi baixado pelo usuário Tech Programmer 11 Novembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 97 vezes e gostou like espectadores. Boa visualização!