Picture27.jpg
Blog
Picture11.jpg
Picture11.jpg
Picture30.jpg
Picture30.jpg
Picture36.jpg
Picture36.jpg
Picture8.jpg
Picture8.jpg
Picture23.jpg
Picture23.jpg
Picture19.jpg
Picture19.jpg
Picture4.jpg
Picture4.jpg
Picture5.jpg
Picture5.jpg
Write a program that asks the user to enter a sentence. The…
Write a program that asks the user to enter a sentence. The program should reverse the order of the words in the sentence and display the result. Do not reverse the characters in the words, only the word order. Source Code: def reverse_sentence( 1 ): words = sentence. 2 () reversed_words = 3 [::-1] return ‘ ‘.join( 4 ) user_input = input(“Enter a sentence: “) result = 5 (user_input) print(“Reversed sentence:”, result)