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

matthew lynch
matthew lynch
861 Points

Having trouble with question 4

Hi,

I'm having trouble getting this fourth step.

full_name = ("Matthew David Lynch") name_list = (full_name).split(" ") greeting_list = ("Hi, I'm Treehouse").split(" ")

Any further guidance I can receive? It seems so simple but I keep struggling with it.

Thanks!

greeting_list.py
full_name = ("Matthew David Lynch")
name_list = (full_name).split(" ") 
greeting_list = ("Hi, I'm Treehouse").split(" ")

2 Answers

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello Matthew

I have done the challenge right now, but I can't clearly understand if you are looking for 4/4 task hints or hints for the 3/4 part, because the code you have pasted does not include the 3/4 part.

Which part are you definitely struggling with (before I may be able to help out a little bit)

matthew lynch
matthew lynch
861 Points

HI Vittorio,

Thanks for the reply. I ended up figuring it out right after I posted the question.

Thanks!

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

That's an awful lot of parentheses! :) You don't need them around every variable.

You have steps 1 and 2 passing. Step 3 just requires you to change "Treehouse" in greeting_list to, in your case, "Matthew" from name_list.

matthew lynch
matthew lynch
861 Points

Hi Kenneth,

Thanks, I ended up getting it right after I posted. Thanks for the reply and for the parentheses tip!