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

I don't have a clue what this question is request. What spaces are you talking about? Review code prints out a table

Don't understand the question

Lukas Smith
Lukas Smith
4,026 Points

what is a question ?

This is the question: "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! "

my answer, for starters is did you rewatch the video? The video gives you pretty much what you need to know. The spaces mentioned are the spaces in your full name. For example in "John Q. Jones" there are spaces between John and Q. and between Q. and Jones.

I hope this helps.

Lukas Smith
Lukas Smith
4,026 Points

It is ease You need create a list of names, so doesn't matter how many spaces you are

  1. Matt Damon
  2. John Q. Jones
  3. Michael Dredd

Search the first space and cut till there. You list of names should be 1. Matt 2. John 3. Michael

2 Answers

Alexander Torres
Alexander Torres
4,486 Points

Create the string variable with your name and then use the split method to make a list. I highly recommend the "Lists" video. I hope I have helped out a bit if you have not figured it out yet.

This is the question: "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! "

my answer, for starters is did you rewatch the video? The video gives you pretty much what you need to know. The spaces mentioned are the spaces in your full name. For example in "John Q. Jones" there are spaces between John and Q. and between Q. and Jones.

I hope this helps.