when we create an objectwe call it an instance of class class is defined as type in python you can find out the type of any object using the type function functions are used to utilize the code in more than one place in program python provides inbuilt functions like print(and you can create your own functions in addition to built-in functions an object has two characteristicsattributes behaviour let' take an exampleman/women is an objectwhereas nameagecolor are attributes and singingdancing is behaviour the concept of oop in python focuses on creating reusable code this concept is also known as dry (don' repeat yourselfpython class python class is simply representation of type of object it is the blueprintplantemplate that describes the details of an object class is blueprint from which the individual objects are created class is composed of three thingsa nameattributesand operations the simplest form of class definition looks like thisclass class definitionslike function definitions in practicethe statements inside class definition will usually be function definitionsbut other statements are allowedand sometimes useful when class definition is entereda new name-space is createdand used as the local scope thusall assignments to local variables go into this new name-space in particularfunction definitions bind the name of the new function here the class definition syntax has two partsa class header and set of method definitions that follow the class header the class header consists of the class name and the parent class name the class name is python identifier page