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)