def reverse(s):
    words = s.split(' ')
    list_words = []
    for word in words:
        list_words.insert(0, word)
    final = ' '.join(list_words)
    print(final)


reverse('this is a sample text')

ee7bb9c4c34230ef36d85f47153cc03a71f5b3d6
<mask token>

def reverse(s):
    words = s.split(' ')
    list_words = []
    for word in words:
        list_words.insert(0, word)
    final = ' '.join(list_words)
    print(final)


<mask token>

def reverse(s):
    words = s.split(' ')
    list_words = []
    for word in words:
        list_words.insert(0, word)
    final = ' '.join(list_words)
    print(final)


reverse('this is a sample text')
