Due to unforseen circumstances in Suburbia, the trains will be delayed by a further 10 minutes.
Create a function that will help to plan out and manage these delays! Create a function called manage_delays that does the following:
expected_time by the delay, if the destination given is in the train object's destinations.trains = [
Train(["Townsville", "Suburbia", "Urbantska"], "13:04"),
Train(["Farmsdale", "Suburbia", "Lakeside Valley"], "13:20"),
Train(["Suburbia", "Townsville", "Lakeside Valley"], "13:22")
]
for t in trains:
manage_delays(t, "Lakeside Valley", 60)
trains[0].expected_time ➞ "13:04"
trains[1].expected_time ➞ "14:20"
trains[2].expected_time ➞ "14:22"
destinations and expected_time. See the Tests tab for further details.