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

Oops! It looks like Task 1 is no longer passing. on my third challenge!

I struck at the challenge task #3 for several days as it said Oops! It looks like Task 1 is no longer passing.

greeting_list.py
full_name = "Wiphop Fong"
name_list = ["Wiphop","Fong"]
greeting_list = ["Hi,","I'm","Treehouse"]
name_list.insert(0,"Treehouse")

2 Answers

Greg Kaleka
Greg Kaleka
39,021 Points

It looks like you're not splitting your name into a list. The challenge explicitly says not to do it manually. You need to use the split() function:

name_list = full_name.split()

I went through the challenge, and got it to work using the above method. You have some other errors as well, though. Here's my complete code after the three challenges:

full_name = "Wiphop Fong"
name_list = full_name.split()
greeting_list = "Hi, I'm Treehouse".split()
greeting_list[2] = name_list[0]

I really appreciate your help Greg Kaleka !! Hopefully, I could return this favor somedays when I become more proficient. Have a great day !

@Greg, Thank you ! When I try using your suggested function, I still ended up getting the same "Oops! It looks like Task 1 is no longer passing. on my third challenge!" at the challenge task #3. Do you know how I could solve this?

Greg Kaleka
Greg Kaleka
39,021 Points

I edited my answer above :)