pointa xcoord ycoord pointa pointa shift( self xinc yinc xcoord pointb xcoord ycoord ycoord pointb xcoord ycoord figure the local scope (topwhen calling pointa shift( , and the result after the call (bottomthe distance is computed between the self point and the otherpointwhich is passed as an argument figure illustrates the local variables that are created when applying the method with the call pointa distancepointb pointa xcoord pointa distance(pointbotherpoint self ycoord xcoord ycoord pointb figure the local scope when calling pointa distance(pointbd using modules class definition is typically placed within its own module or combined with other common classes in single module this helps to organize and manage programs that consist of multiple classes when class is neededit can be imported from the module just like we would do with any of the standard modules for examplesuppose the point class is defined in the point py moduleas shown in listing to use the point class as illustrated by the earlier exampleswe must first import it from the point py modulefrom point import point create two point objects pointa point( , pointb point( , get and print the coordinates of pointa pointa getx( pointa gety(print"(str( "str( ")shift pointa and compute the distance between the two points pointa shift( pointa distancepointb