Working with Python classes and instances

Python uses class for object-oriented programming. A class represents the general behavior or information that the programmer or data analyst focuses on. When a class is created, particular objects belonging to this class can be created. This process is called instantiation. Class contains attributes, methods, or functions for general purpose. Attributes for instances can be modified by directly assigning new values, or by using methods defined in a class.