16/18 please help


#1

Can someone tell me why this doesnt work?
Is append function not supposed to use here or I used it in a wrong way?


#2

Strings do not have an append() method, only lists do. If all you wish to do is output a string with the words joined, use the join() method:

def join_strings(words):
    return ' '.join(words)

If you do not want a space in between, change the separator to '', as in,

''.join(words)

#3

Get it !
Thank you very much