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

The first lesson in Python beginnings 'introducing tuples' has no hints, help please?

I can't believe I have to do this on the first exercise on the first lesson of a beginners track. No hints, no related questions, I don't see any reference to this specific activity in the lesson, and I pasted all of the notes from the workshops sections (searched the entire pile of notes for the word variable to see an example).

The term 'Variable' was only mentioned one time throughout the texts and it wasn't related to this challenge.

I started feeling like the lesson is out of order, then I saw prerequisite recommendations beneath the content when I actually entered the track manually and click on the course. When I started I just clicked "switch track" and it placed me straight on this course. Maybe people with no Python points should get placed at the first prerequisites of a track. I've been grinding my teeth for about a half hour over this.

creating_tuples.py
#A tuple
my_tuple = ('I', 'love', 'python')
item3 = (3,)

3 Answers

See Access Tuple Items here and try the exercise. You should be able to figure it out from that.

Just in case anybody else happens to just start the track and be placed in Tuples course without any prior Python knowledge like me.

The challenge answer should look like: my_tuple = ('I', 'love', 'python') item3 = 'python'

I can't believe that works - but it does. I was expecting the following to be required:

my_tuple = ('I', 'love', 'python')
item3 = my_tuple[2]