Skip to content
Snippets Groups Projects
14.py 177 B
Newer Older
Iida Pyykkönen's avatar
Iida Pyykkönen committed
# Write a function solve that reverses the words in a string. 
# Words are separated by spaces.

def solve(string):
    list = reversed(string.split())
    return ' '.join(list)