with its properties and methods object is simply collection of methods(functionsthat acts on those data data(variablesand creating classesa class is block of statement that combine data and operationswhich are performed on the datainto group as single unit and acts as blueprint for the creation of objects syntaxclass classnameoptional class documentation string #list of python class variables python class constructor #python class method definitions in class we can define variablesfunctions etc while writing function in class we have to pass atleast one argument that is called self parameter the self parameter is reference to the class itself and is used to access variables that belongs to the class