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 shortestbridgebridge bridge bridge: shortestbridgeflame "deep river", "flower" 'bridge shortestbridgehot flames", "river", "flower" 'bridge shortestbridgeflame "river", "calm and green" 'bridge shortestbridgevery dangerous", "deep river", "red flower" 'bridge
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
