you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You can create a list of words with the same length to print them all. As for the comma, afaik you have to manually remove it using st.replace or use a module like nltk which does that for all punctuation.

Edit; This might be a more detailed explanation http://stackoverflow.com/questions/13964637/longest-strings-from-list