Python Development: Creating Classes, Handling Errors, & Importing Modules
Python 3.6+
| Beginner
- 9 Videos | 1h 16m 23s
- Includes Assessment
- Earns a Badge
Python classes act like blueprints for establishing a new type of object with its own set of properties and methods. In this course, you'll learn how to define and instantiate classes in Python. You'll start by using the init() method to initialize your class's member variables and the self keyword to reference a class's current instance. You'll then illustrate the differences between the self keyword in Python and the "this" keyword in Java. Next, you'll 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, you'll 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 you're finished with this course, you'll be able to set up Python classes for various uses in your development projects.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this coursedefine and use classes in Pythoninitialize classes using the __init__() methoduse try and except blocks to catch potential errors in codeuse the finally block to write clean up code
-
import modules into your current programreference a custom module written in a different Python filepass and reference command line arguments in Pythonsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 8sUP NEXT
-
2.Working with Classes in Python8m 36s
-
3.Defining Methods within Python Classes12m
-
4.Catching Exceptions Using Python's Try Except Blocks11m 38s
-
5.Using Python's Finally Block4m 29s
-
6.Importing Python Modules10m 36s
-
7.Creating Simple Python Modules12m 4s
-
8.Parsing Command Line Arguments in Python11m 55s
-
9.Course Summary2m 58s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.