solution

Given a sentence: “I love Python and Python loves me.” Write a function to print the sentence in the reverse order (word by word). In your code, you must call the function to show the result. Hint: You may find .split() useful. ? You will earn the half credit if your function can print the following: rev_word (“I love Python and Python loves me.”) me. loves Python and Python love I You will earn the full credit if your function can take care of the period and capitalizations. Pay attention that the last word must be in lower case. rev_word (“I love Python and Python loves me. .”). Me) loves Python and Python love(i.)
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp