Answers for "python find shortest string in list"

0

python min length list of strings

strings = ["some", "example", "words", "that", "i", "am", "fond", "of"]
print min(strings, key=len) 
# prints "i"
Posted by: Guest on February-11-2020
0

how to find the longest string python

max(a_list, key=len)
Posted by: Guest on November-22-2020

Code answers related to "python find shortest string in list"

Python Answers by Framework

Browse Popular Code Answers by Language