Python Tutorial Guide #19 - Python Try and Exception Catching
Hedia
Youtube: https://youtu.be/a18etHg2AKM
Hello Guys:
Python Tutorial Guide #19 - Python Try and Exception Catching
In this video, I will go over how to write Try statements in python.
Try statements allow us to invoke a block of code, and in the case that block of code has an error or fails for any reason, we can take control of that error to output a specific message, and also handle that error in a way that we can allow the rest of our code to run without being stopped at the point of error.
In order to manage the errors, we use the other half of the try statement, called the exception statement, which allows us to catch errors in code and handle their error message and the impact the error can have on our code during run time!
Try and Catch statements such as these are very common in most real world code applications, since they allow our code to functions in scenarios where there are multiple inputs and outputs, as well as help in polymorphic data structure creation overall.
Music used in this video is from Royalty Free Music: ►Download ➜ https://cfmfreemusic.com/undefeated-h... Royalty Free Music | No Copyright Sounds | Undefeated - Hip Hop Beat Rap Instrumental
61950806 Bytes