Exception Handling in Python | TRY EXCEPT in Python | Python Tutorial for Beginners #8

Exception Handling in Python can be done using try except in python. Handling exceptions is one of the most important aspects of a good python program hence ...

Exception Handling in Python | TRY EXCEPT in Python | Python Tutorial for Beginners #8
techTFQ
40.9K views โ€ข Mar 4, 2021
Exception Handling in Python | TRY EXCEPT in Python | Python Tutorial for Beginners #8

About this video

Exception Handling in Python can be done using try except in python. Handling exceptions is one of the most important aspects of a good python program hence in python we can handle exceptions by placing the block of code which we assume to be causing error inside a try and except block.
Any error caused by the block of code within the try except clause wonโ€™t be returned to the user but will be handled by the except block.

In Python, we can also raise user defined exceptions using the raise Exception clause. Raise exception can be used anywhere in the code to cause an error based on certain conditions.
We can raise and exception within the try except block so the user defined error can be caught by the try except block.

Within try except exception handling in python, we can also use ELSE and FINALLY clause. Block of code within else will be executed when the code within try does not throw an error. If the block of code within try causes an exception, then the except block will be called and the block of code within except will be executed.
Block of code within finally, will be executed every time. Meaning whether there is an exception or not, if you have mentioned finally in your try exception block then the block of code within finally will always be executed.

This video is aimed at complete beginners who are just getting started with programming or with python programming. The concepts are explaining in the most basic manner so anyone can understand it.

The purpose of this Python tutorial series for beginners is to explain python programming in the most simplest manner by providing simple examples and working out interesting and meaningful python programs which should be a better way to learn programming especially for the beginners.

All the programs and content of this video will be posted in my website https://techtfq.com/

So please make sure to check that out as well.

Other videoโ€™s in this tutorial series:

Local and Global Scope in Python | Local and Global Variables | Python Tutorial for Beginners #7
https://www.youtube.com/watch?v=5bwpXLHzZRo

What is a FUNCTION in Python | Python Functions | Python Tutorial for Beginners #6
https://www.youtube.com/watch?v=UzOnFDmoJ9w&t=16s

Import modules in Python | Import module from different directory | Python Tutorial for Beginners #5
https://youtu.be/HNChkuE6HyA

WHILE loop and FOR loop in Python | LOOP statements in Python | Python Tutorial for Beginners #4
https://www.youtube.com/watch?v=2gFqUWO-AWM&t=107s

IF ELSE ELIF statement in Python | IF ELSE Statement in Python | Python Tutorial for Beginners #3
https://www.youtube.com/watch?v=NvdSKgQcyuc&t=28s

What is a VARIABLE in Python | Python Variables | Python Tutorial for Beginners #2
https://www.youtube.com/watch?v=BBb_duZIusU&t=21s

What are DATA TYPE, OPERATORS and EXPRESSION in Python | Python Tutorial for Absolute Beginners #1
https://www.youtube.com/watch?v=PRGkYivK2xI&t=68s


Please like, subscribe and leave a comment if you found the video to be useful. Also please make sure to click on the notification bell to be notified of my latest videoโ€™s.

๐Ÿ”ด WATCH MORE VIDEOS HERE ๐Ÿ‘‡

โœ… SQL Tutorial - Basic concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9HQQ_COgGb7kf_1H8UWUBxO

โœ… SQL Tutorial - Intermediate concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9FD9XspliRM_HZM_jK7tkii

โœ… SQL Tutorial - Advance concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9GbmgiW4TWVnxhjMFOIf0Q7

โœ… Practice Solving Basic SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9F66P3GFo5O6nJ4DfZNhVsp

โœ… Practice Solving Intermediate SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9EIYmNXJ8ZtQ1bmLIpt0SpV

โœ… Practice Solving Complex SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9Fahr7taauUx5RnTfuGyL--

โœ… Data Analytics Career guidance:
https://www.youtube.com/playlist?list=PLavw5C92dz9FDsr995DjwCy9XNaIukb8P

โœ… SQL Course, SQL Training Platform Recommendations:
https://www.youtube.com/playlist?list=PLavw5C92dz9GqF1Q_zn8KnYvFgtEOh-2n

โœ… Python Tutorial:
https://www.youtube.com/playlist?list=PLavw5C92dz9FePZXIo4jpsupqp3X0w2SW

โœ… Git and GitHub Tutorial:
https://www.youtube.com/playlist?list=PLavw5C92dz9EI1MPlqqDpe3bgr8RJZE0b

โœ… Data Analytics Projects:
https://www.youtube.com/playlist?list=PLavw5C92dz9HwT_uStsDdJbuBOt_XD0ch

THANK YOU,
Thoufiq

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

40.9K

Likes

963

Duration

14:53

Published

Mar 4, 2021

User Reviews

4.7
(8)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

No specific trending topics match this video yet.

Explore All Trends