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


Why is my code not working?

attendees = ["Ken", "Alena", "Treasure"] print("There are", len(attendees), "attendees currently")

1 Answer

Philip Schultz
Philip Schultz
11,437 Points

I'm not sure what challenge you're working on, so I don't know what the result should be. This code runs fine to me though. Maybe it wants the number to be converted to a string? Give some more details as to what you are trying to accomplish, if it's a challenge than post the instructions.

In case you are trying to convert the number to a string see below.

attendees = ["Ken", "Alena", "Treasure"] 
print("There are", str(len(attendees)), "attendees currently")