What is inheritance, and can you give an example?
Implement a base Device class and a TemperatureSensor subclass that overrides the base describe method. Write describe_devices(devices) to create the appropriate object for each input record and return descriptions in the original order.
Input records contain type and name; temperature records also contain value. Return a list of strings.
nametype is either generic or temperaturedef describe_devices(devices):