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

João Sulzbach
João Sulzbach
2,611 Points

Challenge says "Try again", but in the Python command line it works just fine. Am I misunderstanding the instruction?

So, the code works just like it have to, but the challenge isn't accepting it. Why? Can someone help me?

greeting_list.py
full_name = "João Frischenbruder Sulzbach"
name_list = full_name.split()

1 Answer

rydavim
rydavim
18,813 Points

This is going to be kind of a lame answer, but the challenge doesn't seem to like the special character in your name. Sorry.

The following worked for me, so it seems like there's nothing wrong with your code.

full_name = "Joao Frischenbruder Sulzbach"
name_list = full_name.split()
João Sulzbach
João Sulzbach
2,611 Points

Thanks for that! I'm feeling slightly dumb hahaahaha