When two classes in the same chain both define `get_calories`, how does Python decide which one actually runs?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Workout is already defined above, with its class variable cal_per_hr = 200. Complete RunWorkout so it adds a class variable cals_per_km set to 100, and so its constructor lets Workout set up hours before storing the route on the instance as self.route_gps_points. The checks build RunWorkout(2) and RunWorkout(2, points) and read RunWorkout.cals_per_km, hours and route_gps_points.
class Workout(object):
cal_per_hr = 200
def __init__(self, hours):
self.hours = hours