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
Get step-by-step solutions from verified subject matter experts
