Answers for "Program for length of the shortest word"

0

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
Posted by: Guest on November-08-2020

Code answers related to "Program for length of the shortest word"

Python Answers by Framework

Browse Popular Code Answers by Language