I have defined the class. Rectangle in Python. How do I define a
class Canvas with the following description:
Class Canvas represents a collection of Rectangles. It has 8
methods. In addition, to the constructor
(i.e. __init__ method) and two methods that override python's
object methods (and make your class
user friendly as suggested by the test cases), your class should
contain 5 more methods:
add_one_rectangle, count_same_color, total_perimeter,
min_enclosing_rectangle, and common_point.