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

Yuqian Ci
Yuqian Ci
1,586 Points

There's something wrong with Treehouse's quizs...

It says "task one is not passing", but previous steps are checked as correct. Wondering if the following code is right?

Task 1: full_name = "Ci Yuqian" name_list = full_name.split()

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

Task 3: greeting_list[3] = name_list[0]

greeting_list.py
full_name = "Ci Yuqian"
name_list = full_name.split()

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

greeting_list[3] = name_list[0]

1 Answer

Hello,

The problem is with your last line, you have an off by one error in your indexing, which is causing an Exception, which is why its saying that step 1 isn't passing(I'd also think that it should just say you have an Exception instead of saying part 1 isn't passing). Please let us know if you need any more help in solving your issue, and if so, please provide your updated code so we can help you from where you end up at.