Question: A Python function named process_string(sentence) , that receives as argument a sentence. The method must return a new string where the order of the words
A Python function namedprocess_string(sentence), that receives as argument a sentence. The method must return a new string where the order of the words has been inverted.
For example:
print(process_string("Coding is a lot of fun").strip()) fun of lot a is Coding print(process_string("Hello dear students").strip()) students dear Hello
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
