classmethod is a built-in decorator in Python that is used to define a method that is bound to the class and not the instance of the class. A class method has access to the class attributes but not the instance attributes.

What Are Class Methods?