Welcome to the Treehouse Community
Looking to learn something new?
David Fry13,267 Points
How come this does not pass the test on part 4
I am having problems with part 4 on this code challenge.
full_name = "David Fry" name_list = full_name.split() greeting_list = "Hi, I'm".split() + name_list greeting = " ".join(greeting_list)
You created a list called
name_list that looks like
['David', 'Fry']. The challenge is expecting "Hi, I'm David". To accomplish this, access the first item in
name_list via an index. In this case, 'David' is the first item in
name_list, so you would access it via
greeting_list = "Hi, I'm".split() + name_list
Chris FreemanTreehouse Moderator 68,082 Points
You are adding your entire
greeting_list. So your first and last name is present.