defining class in python is done using the class keywordfollowed indented block defining class by in an python is done using with the cthe lass class contents keywordfollowed by an indented block with the class contents general format class data attributes class data value datam valuem def (self,arg ,argk)def (self,arg ,argk)class member functions