word

PythonF

Reverse Every Word

The program must accept a string S containing multiple words as the input. The program must reverse every word in the string S. Then the…