Python is an Object Oriented Programming language. Objects are an encapsulation of variables and functions into a single entity. Objects get their variables and functions from classes.
You can think of Classes as a template to create your objects.
Here's a simple class. Once we create the class, we can create an instance of it.
You can now access the variables inside the class (in our example, "name") using "." on the object
This will print "Kavin" in the console.
As I mentioned, a class is a template by which you can create multiple objects. Think of class as a cookie-cutter. Using a cookie-cutter, you can make any number of cookies. Same way, using a class, we can create any number of objects, each with their copy of the variables. See the modified example below:
This will print: