Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.