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

Michael Moore
Michael Moore
13,564 Points

What does it mean don't create name_list manually?

Create a variable named full_name that holds your full name. Make another variable named name_list that holds your full name in list form, split on the spaces. Don't create name_list manually, use split!

greeting_list.py
full_name = 'michael moore'
name_list = list().split

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Michael,

You're pretty close on the code, it's just a bit mixed up on the second line. When the challenge says "don't create name_list manually, it just means it doesn't want you to cheat and do name_list = "m i c h a e l ...", but rather use split().

And you are close. You are assigning the new variable name_list like you should, but you need to call split() on the full-name variable, and then tell it to split using spaces (" ").

Your second line will look like this

name_list = full_name.split(" ")

Hope that helps. Keep Coding! :)