def reverse_string(input_string): word = input_string.split() reversed_string = ' '.join(reversed(word)) return reversed_string string1 = "The weather is so sunny nowadays" string2 = "Life is so beautiful" output1 = reverse_string(string1) output2 = reverse_string(string2) print(output1) print(output2)