Welcome to the Treehouse Community
Looking to learn something new?
greeting_list.py challenge question 2
On task 3 but getting error message stating that it looks like task 1 has failed. code as follows:
full_name = "Luis Gonz" name_list = ["Luis", "Gonz"] greeting_list = "Hi, I'm X".split()
steven font You are almost close. It is clearly told in the challenge 2 not to create name_list manually.
You should use split() function on full_name variable.
full_name = "Luis Gonz" name_list = full_name.split() greeting_list = "Hi, I'm X".split()
Hope it helps
Stone Preston42,016 Points
can you post code youve tried for task 3? also note that task 2 says not to create the list manually. you need to create your name_list variable using the split method as well.
Thanks guys, much appreciated.