Simple, given a string of words, return the length of the shortest word(s).

String will never be empty and you do not need to account for different data types.

Difficulty: introductory

Starter code:

def find_short(s):
	

Solutions:
def find_short(s):
    return min(len(x) for x in s.split())

def find_short(s):
    return len(min(s.split(' '), key=len))

def find_short(s):
    return min(map(len, s.split(' ')))

def find_short(s):
    s = s.split() # splits the string into a list of individual words
    l = min(s, key = len) # finds the shortest string in the list
    return len(l) # returns shortest word length

def find_short(s):
    return min(len(a) for a in s.split())

def find_short(s):
    sList = s.split()
    shortestLength = len(sList[0])
    for item in sList:
        if len(item) < shortestLength:
            shortestLength = len(item)
    return shortestLength


def find_short(s):
    return len(sorted(s.split(), key=len)[0])

def find_short(s):
    l = 100000;
    a = s.split(" ")
    for i in a:
        if(len(i)<l):
            l = len(i)
    return l # l: shortest word length

def find_short(s):
    return min( [len(i) for i in s.split()] )

find_short = lambda s: min(len(e) for e in s.split())