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.


I cannot get past the code challenge for 1 of 4 regarding lists. I need help please.

The task is: “Create a variable named full_name that holds your full name. Make another variable named name_list that holds your full name as a list, split on the spaces. Don't create name_list manually!” I wrote:

full_name = "Deborah Anne Winger"
name_list = []

which resulted in: ['Deborah Anne Winger']

I’m being told that my name_list doesn’t match my name. I don’t see how that’s true. What am I missing here? Help.

4 Answers

Hi Cheri,

You're not splitting the name up along the spaces.

The result you're trying to get is this: ['Deborah', 'Anne', 'Winger']

There's a .split() method you can use on full_name to split it.

Let me know if you need further help.

Sean T. Unwin
Sean T. Unwin
28,660 Points

You want to use split() in order to "split on the spaces" as the challenge requests.

name_list = full_name.split(' ')

Thank you.

Thank you.