Created
January 4, 2020 16:59
-
-
Save kkt-ee/2db23e342a81c6a854c2972e85a11b15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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. | |
""" | |
def find_short(s): | |
# your code here | |
l = min([len(x) for x in s.split()]) | |
return l # l: shortest word length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment