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

In preview, greeting_list has replaced "Treehouse" with the first item in my name_list.split() but failing anyways?

In preview, greeting_list has replaced "Treehouse" with the first item in my name_list.split() - which is my first name - but the challenge is failing anyways?

greeting_list.py
full_name = "Troy Douglas"

name_list = full_name.split()

greeting_list = "Hi, I'm a Treehouse".split()

greeting_list[3] = name_list[0]

1 Answer

Gennah Gallagher
Gennah Gallagher
5,820 Points

Hey!

It's so close, but you've got an extra word in there - it should be "Hi, I'm Treehouse" and subsequently - greeting_list[2]

MOD NOTE: Change from "Comment" to "Answer" so it may be voted on or marked "Best Answer"