I want to write a function that would return the length of the shortest string in a string of words.
Sample: \"I eat apples\" would return 1 since \"I\" is the shorted string.
T
# split the string by spaces and pick the min based on the lenght of splitted string
# Example:
string = "I eat apples"
final = min(string.split(), key = lambda x: len(x))
print(final)
# >>> I