Defining a Class
Define the class rectangle. It's constructor takes a pair of numbers representing the top-left corner, and two other numbers representing the width and height. It has the following methods:
* getBottomright() - return the bottom right corner as a pair of numbers.
* move(p) - move the rectangle so that p becomes the top-left corner.
* resize(width, height) - set the width and height of the rectangle to the supplied arguments.
* __str__() - return the string representation of the rectangle as a pair of pairs - i.e. the top left and bottom right corners.
Note: Unlike the co-ordinate system you may have encountered before, y, in this question, increases as you move vertically downwards. Example: Be careful to get the spacing right for str - i.e. comma followed by space.
>>> r = rectangle((2,3), 5, 6)
'((2, 3),(7, 9))'
'((5, 5), (10, 11))'
'((5, 5), (6, 6))'
if any can help me with I would be thankful for him or her