Python, Oop, Programming, Technology, Software Development.
self.radius = radius def area(self): return 3.14 * self.radius * self.radius def print_area(shape): print(f"The area is {shape.area()}") # Create instances of Rectangle and Circle rect = Rectangle(3, 4) circ = Circle(5) # Call the print_area function with different objects print_area(rect) #