Given a string of words, write the string of words in the opposite order. For example, at the entrance: "Mom washed the frame." Exit: Mom's soap frame. Here is my code, it does not work.
a=[] a=input('Введите фразу:') .split() a.reverse() b=str(a) print(b)