Question: Write a function to find and display the first shortest string in a list of strings. The list of strings will be accepted as the

Write a function to find and display the first shortest string in a list of strings. The list of strings will be accepted as the argument to the function. To get the length of a string use the len function i.e. len('Narendra') will return 8. Do not use the sort, min or max functions

The statement

print(shortest_string('Go ahead, make my day'.split())) will give:

Go

code should be the phyton

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!