Video Description

Exceptions and Classes in Python This lesson covers exceptions and classes in Python. An exception is what happens when your code causes an error at execution (i.e. if you attempt to access a file which doesn't exist). To handle exceptions you can try some code to handle to error and keep coding. Participants also learn about classes, which are an essential part of Python's Object Oriented nature. They allow the user to create objects which specific attributes and functions (called methods) quickly and easily. The following are parts of a class: - Attributes

  • Methods

  • Inheriting

Participants also learn step-by-step instructions in creating an exception and can follow along with the instructor as he programs on the screen. Finally, the lesson also covers the following more obscure functions: - Lambda

  • List comprehension

Course Modules