Let's Make a Class!4:21 with Kenneth Love
With vocabulary out of the way, let's see how to define our own classes.
We'll be doing a lot of importing in this course because it gives us the best way of organizing our code into logical bunches. It's a good practice to get into!
Notice that we can immediately read and write our class attributes! We don't usually write getters or setters (methods for retrieving or updating data on an instance) in Python.
You need to sign up for Treehouse in order to download course files.Sign up