Welcome to the Treehouse Community
Looking to learn something new?
Luke Telford2,931 Points
Can anyone help with this task for joining strings?
I have only just started to learn Python and I am getting the error 'Oops! It looks like task 1 is no longer passing.' with this task. As far as i can tell i have done it correctly but obviously not, help would be greatly appreciated!
full_name = "Luke Telford" name_list = full_name.split() greeting_list = "Hi, I'm Treehouse".split() greeting_list = name_list greeting = greetin_list.join()
Logan R22,989 Points
You are not joining the lists back together correctly.
greeting = ' '.join(greeting_list)
When you join a list back together, you use the
' ' and what every you put in between the ' marks is what it gets joined together with.
greeting = "Hello, there! How are you?" greeting = '555666'.join(greeting_list)
The output would be:
Hope that makes more sense!