input: from typing import List
  
  def calculate_rectangles_area(rectangles: List[Rectangle]) -> List[float]:
      """ Calculate the area of each rectangle provided in the list.
      >>> r1 = Rectangle(2, 3)
      >>> r2 = Rectangle(4, 5)
      >>> calculate_rectangles_area([r1, r2])
      [6.0, 20.0]
      """
      return [rect.area() for rect in rectangles]
output:     return [rect.width * rect.height for rect in rectangles]