bgasfen.blogg.se

Fastscripts python
Fastscripts python












fastscripts python

Unhandled exceptions are fatal to your program. So even if your syntax is 100% correct, your program can still have exceptions. For example, if you tried to run our final exercise from introduction to Python and you didn't have a valid internet connection, it would just raise an exception that we didn't catch and exit the program. > Nina Zakharenko: Even if the syntax is totally correct, sometimes errors occur when your program is run. If we get a value error, that means that something is wrong with the input that we gave, right? > Nina Zakharenko: If we get an indentation error, we know that we didn't indent our code properly.

fastscripts python

Those syntax errors that we've seen, they do a pretty good job of telling us what went wrong, right? > Nina Zakharenko: The built-in exceptions and exception handling, it's a really nice feature of Python.

Fastscripts python how to#

So I'm gonna tell you a little bit about the exception of hierarchy, about raising exceptions, and about how do you use try catch, and how to create our own custom exception process.

fastscripts python

But that's not enough in the course of a more complex program. We saw some simple try excepts yesterday. But we haven't really figured out what to do about them. We've seen type error, syntax error, value error, indentation error. We've seen exceptions quite a bit over the course of this class. > Nina Zakharenko: Let's talk about exceptions. Transcript from the "Exception Types" Lesson














Fastscripts python