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

Farshid Rafiee Rad
PLUS
Farshid Rafiee Rad
Courses Plus Student 1,286 Points

Stuck at Challenge Task 2 of 4

For the challenge, I provide the following answer:

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

But it does not seem to like it and it does not let me continue. What am I missing in my response?

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

3 Answers

John Deininger
John Deininger
3,958 Points

the " " in the .split() is what's wrong. remove them and you should be good.

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

The " " is fine. It's just doing the same behavior as .split() does by default.

Is this your entire file? If so, you're missing the previous two steps.

Farshid Rafiee Rad
PLUS
Farshid Rafiee Rad
Courses Plus Student 1,286 Points

Thanks Kenneth. That was it. I was removing the challenge code for the previous step.