Python, like every other object-oriented language, allows you to define classes to create objects. In-built Python classes are the most common data types in Python, such as strings, lists, dictionaries, and so on.
A class is a collection of instance variables and related methods that define a particular object type. You can think of a class as an object’s blueprint or template. Attributes are the names given to the variables that make up a class. Click here for more info.