Python Development: Creating Classes Handling Errors & Importing Modules
Python classes act like blueprints for establishing a new type of object with its own set of properties and methods. In this course youll learn how to define and instantiate classes in Python. Youll start by using the init() method to initialize your classs member variables and the self keyword to reference a classs current instance. Youll then illustrate the differences between the self keyword in Python and the "this" keyword in Java. Next youll examine how errors in Python can be handled using the try-except-finally block and how the error handling mechanism in Python is similar to Java exception handling. Finally youll import other Python libraries into your current Python program using classes and functions defined in one Python file in another file using the import statement. When youre finished with this course youll be able to set up Python classes for various uses in your development projects.