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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!