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 Introducing Tuples Getting to Know Tuples Creating Tuples

Getting an error on the second task stating that I haven't created a tuple.

For whatever reason, I'm receiving an error that states I haven't created a tuple. The format is the exact same as the previous task, which recognized what I wrote as a tuple. I'm not sure what I'm doing wrong in this instance, considering I've rechecked the formatting and on the first task it is willing to recognize what I've written as a tuple.

create_tuple.py
my_tuple = 'I', 'love', 'item3', 'python'

1 Answer

Josh Keenan
Josh Keenan
20,315 Points

You've misread the challenge, you need to create a variable called item3, not insert a string manually to the tuple.

my_tuple = 'I', 'love', 'python'
item3 = # The third thing in the tuple

Hope this helps!

understood. thank you very much!