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

Task 1 not passing

Hi, I don't know how to check my work in task 2 as I keep receiving the error "It looks like Task 1 is not passing".

Thanks

Could you post the Code you currently have? I'd be more than happy to provide some insight.

4 Answers

Hi Monja.

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

This is what U R looking 4.

Task says you have to create a new variable "greeting_list" and give it the string "Hi, I'm Treehouse" and split the string with spaces.

Hope this helped a bit.

Happy Coding!!!

Max Hirsh
Max Hirsh
16,773 Points

Hi Monja. Could you paste your code to show what you have so far (check the Markdown Cheatsheet link below the text field for formatting help)? Generally what can happen is after you pass task 1, if you later add code that prevents your script from interpreting/compiling properly, task 1 can stop passing. Let me know if that helps answer your question!

Hi Steven,

I've finally found the mistake. At the beginning I thought it wasn't related to my code as I was expecting a "bummer" message, but then I realized I was using parenthesis and when I changed them with square brackets I passed to the third task. Shame. Sorry.

Thanks everybody for answering. It was a syntax error, I used parenthesis instead of square brackets.