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

Frank Sherlotti
Frank Sherlotti
Courses Plus Student 1,952 Points

Need help with variables and lists. I'm completely lost

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 have no idea what I'm doing. I went back into the videos to help myself out and thought I figured it out. Nope still clueless.

full_name = 'Frank Sherlotti'

name_list = list('Frank Sherlotti')

1 Answer

Rafael Valera
Rafael Valera
8,401 Points

full_name = "barak obama" name_list = full_name.split() Doing so you create a list with two elements... your first and your last name