# p1review_class.py
"""Example class Rect used in Prelim 1 practice/review session"""

"""Students: You don't need to understand the class defined below at this point
in the course (Prelim 1).  All you need to know are the four attributes of a
Rect, as stated in the docstring.  Don't worry about the code in this file."""

class Rect:
    """An instance is a rectangle .

    Instance Attributes:
        x (float): x-coordinate of the lower left corner of a rectangle
        y (float): y-coordinate of the lower left corner of a rectangle
        width (float greater than 0): width of a rectangle
        height (float greater than 0): height of a rectangle
    """
    def __init__(self, x, y, width, height):
        """Initializer: a new Rect with the given coordinates for the lower
        left corner and the given dimensions

        Preconditions:
            x, y are each a float
            width, height are each a float greater than 0
        """
        self.x= x
        self.y= y
        self.width= width
        self.height= height
