attribute name description myrect left the int value of the -coordinate of the left side of the rectangle myrect right the int value of the -coordinate of the right side of the rectangle myrect top the int value of the -coordinate of the top side of the rectangle myrect bottom the int value of the -coordinate of the bottom side myrect centerx the int value of the -coordinate of the center of the rectangle myrect centery the int value of the -coordinate of the center of the rectangle myrect width the int value of the width of the rectangle myrect height the int value of the height of the rectangle myrect size tuple of two ints(widthheightmyrect topleft tuple of two ints(lefttopmyrect topright tuple of two ints(righttopmyrect bottomleft tuple of two ints(leftbottommyrect bottomright tuple of two ints(rightbottommyrect midleft tuple of two ints(leftcenterymyrect midright tuple of two ints(rightcenterymyrect midtop tuple of two ints(centerxtopmyrect midbottom tuple of two ints(centerxbottomprimitive drawing functions pygame provides several different functions for drawing different shapes onto surface object these shapes such as rectanglescirclesellipseslinesor individual pixels are often called drawing primitives open idle' file editor and type in the following programand save it as drawing py import pygamesys from pygame locals import email questions to the authoral@inventwithpython com