input: from typing import List
  
  def rectangle_area(rectangles: List[Rectangle]) -> List[float]:
      """ Calculate the area for each rectangle in the given list of Rectangle objects.
      >>> rectangle_area([Rectangle(4, 5), Rectangle(2, 3)])
      [20, 6]
      >>> rectangle_area([Rectangle(7, 1), Rectangle(0, 0)])
      [7, 0]
      """
output:     return [rect.width * rect.height for rect in rectangles]