I\'m trying to analyze the contents of a string. If it has a punctuation mixed in the word I want to replace them with spaces.
For example, If Johnny.Appleseed!is:a*good
for ltr in ('!', '.', ...) # insert rest of punctuation stringss = strings.replace(ltr, ' ') return len(stringss.split(' '))