Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python min length list of strings

strings = ["some", "example", "words", "that", "i", "am", "fond", "of"]
print min(strings, key=len) 
# prints "i"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #min #length #list #strings
ADD COMMENT
Topic
Name
3+8 =