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 trialJustin Kinney
445 PointsWhat am I doing wrong on list challenge
help?
full_name = ("Justin Kinney")
name_list = list(full_name)
David Bouchare
9,224 Points+1 with what Ron said above.
Additionally, you do not need the parenthesis. full_name = "Justin Kinney" works just fine without them.
Ron Fisher
5,752 PointsRon Fisher
5,752 PointsI believe what you are trying to do is to break your full_name into 2 items, first_name and last_name. The list function will break every item in the string into an element in the list so you get each letter as it's own element in the list.
If you want to have 2 items in that list ['Justin', 'Kinney'] then check out the full_name.split() function. By default it will split on white space however an additional parameter will allow it to split by whatever character you want to split on. Be aware that whatever you split on, by default will be removed from the returned list.