You can split the string into individual words using the split() method, and then use a loop to iterate through the words to find the shortest one. Here's an example:
main.py394 chars14 linesHere's how you can use the function:
main.py72 chars3 lines
gistlibby LogSnag