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

lists code challange problem

I'm having trouble wit the 4th step in the greeting_list.py code challenge I just cant seem to get past this step, i keeps saying oops! looks like task 1 is no longer passing. some help with this would be greatly appreciated :)

greeting_list.py
full_name = "Ethan Wright"
name_list = full_name.split(" ")
greeting_list = "Hi, I'm Treehouse".split(" ")
greeting_list[2] = name_list[0]
greeting = " ".join(greetng_list)

2 Answers

Cristian Altin
Cristian Altin
12,165 Points

You misspelled greeting_list passing it to the join function.

Note: If you use .split() without specifying any arguments it will split looking for spaces by default.

thanks should have checked through it :P

Good catch!

Cristian Altin
Cristian Altin
12,165 Points

Hahaha that's the funny part of life. At times the problem is not where we look.

Keep up the study and enjoy the fun through learning!!

Can you try using split() with out any arguments? The only difference I see between my code and your's is that, and mine seems to be working fine.