6 lines
160 B
Python
6 lines
160 B
Python
|
class py_solution:
|
||
|
def reverse_words(self, s):
|
||
|
return ' '.join(reversed(s.split()))
|
||
|
|
||
|
|
||
|
print(py_solution().reverse_words('hello .py'))
|