class cardef get(self,color,style)self color=color self style=style def put(self)print(self colorprint(self stylec=car( get('brio','red' put(outputbrio red instance variable and class variableinstance variable is defined in method and its scope is only within the object that defines it every object of the class has its own copy of that variable any changes made to the variable don' reflect in other objects of that class