Suppose I have a function
def f(a): return a[::-1]
I want to apply the function f to every word on a string. If the string consists only of s
Use regular expressions, where you can easily get whole words and also whole chunks of continuous whitespace.