classes python supports both the procedural and object-oriented programming paradigms whereas the procedural paradigm is focused on the creation of functionsthe object-oriented paradigm is centered around the use of objects and classes an object is software entity that stores data class is the blueprint that describes the data stored in an object and defines the operations that can be performed on the object objects are created or instantiated from classesand each object is known as an instance of the class from which it was created the class definition pythonlike all object-oriented programming languagesallow programmers to define their own classes class definition is compound statement consisting of header and body the class header contains the keyword class followed by an identifier used to name the class the body of the class definition contains one or more method definitionsall of which must be indented to same indentation level suppose we want to define class to represent point or coordinate in the two-dimensional cartesian coordinate system the objects will need to store two valuesone for the -coordinate and one for the -coordinate we will also have to decide what operations we want to be able to perform on the objects created from the new class we can begin with framework for the new classclass point the methods are defined in the body one after the other notice that our class is named pointwhich starts with an uppercase letter while this is not requirement of the syntaxit is common programming practice in order to distinguish class name from variables and functions method is service or operation that can be performed on an object created from the given class method is very similar to function with several exceptions