returning the length of the shortest word in python code example
Example: Program for length of the shortest word
def find_short(s):
min_length = float("inf")
for x in s.split():
if len(x) < min_length:
min_length = len(x)
return min_length