The ability of different classes to be treated as objects of a common superclass.
# Polymorphic functiondef display_info(vehicle): return vehicle.drive()
# Using the polymorphic functionprint(display_info(car1)) # Output: Driving Toyota Corollaprint(display_info(electric_car)) # Output: Driving Tesla Model S