Question: You thought that the patterns would never end, but all of the sudden a new message appeared: Be wise! . At the same time three

You thought that the patterns would never end, but all of the sudden a new message appeared: Be wise!. At the same time three bridges appeared: one was over flames, another was over a deep river and the third one was over a flowery field. You decided to take the shortest path but in a wise way. Write a function that takes in three descriptions as strings and returns the shortest one. If there is a tie, you should return the bridge name associated with the shortest description that appears first in the parameter list. def shortest_bridge(bridge1, bridge2, bridge3): """>>> shortest_bridge("flame", "deep river", "flower") 'bridge1'>>> shortest_bridge("hot flames", "river", "flower") 'bridge2'>>> shortest_bridge("flame", "river", "calm and green") 'bridge1'>>> shortest_bridge("very dangerous", "deep river", "red flower") 'bridge2'"""

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!