Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (Retired) Shopping List Lists and Strings

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()

3 Answers

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 Preston
Stone Preston
42,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.

Feel free to post here. People here love to help.