making it do something nowhaving objects with attributes is greatbut object-oriented programming is really about the interaction between objects we're interested in invoking actions that cause things to happen to those attributes it is time to add behaviors to our classes let' model couple of actions on our point class we can start with called reset that moves the point to the origin (the origin is the point where and are both zerothis is good introductory action because it doesn' require any parametersclass pointdef reset(self)self self point( reset(print( xp ythis print statement shows us the two zeros on the attributes method in python is formatted identically to function it starts with the keyword def followed by space and the name of the method this is followed by set of parentheses containing the parameter list (we'll discuss that self parameter in just moment)and terminated with colon the next line is indented to contain the statements inside the method these statements can be arbitrary python code operating on the object itself and any parameters passed in as the method sees fit talking to yourself the one difference between methods and normal functions is that all methods have one required argument this argument is conventionally named selfi've never seen programmer use any other name for this variable (convention is very powerful thingthere' nothing stopping youhoweverfrom calling it this or even martha the self argument to method is simply reference to the object that the method is being invoked on we can access attributes and methods of that object as if it were any another object this is exactly what we do inside the reset method when we set the and attributes of the self object