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

Dinesh Murugan
Dinesh Murugan
146 Points

How to assign a variable.

Create a variable called my_tuple and assign to it a tuple with three values, all strings 'I', 'love', 'python'

Honestly, I don't understand the question

creating_tuples.py
my_tuple=('i', 'love', 'phyton')

4 Answers

this is the error message your code creates. They are usually helpful in debugging.

Bummer: Hmm. The my_tuple variable is incorrect. Does your tuple have 3 values? Is the spelling and capitalization of the values correct? Are the values separated by commas?

It's just that your first item in the tuple is a lowercase "i". The task wants you to add it as a capital letter so it is grammatically correct.

Dinesh Murugan
Dinesh Murugan
146 Points

Thanks, Kevin & Ella. It worked finally. I made a mistake.

You're welcome, glad to help.

Dinesh Murugan
Dinesh Murugan
146 Points

my_tuple = ('I','love','phyton') "THIS IS NOT REALLY WORKING, I DONT KNOW WHERE I AM REALLY MAKING A MISTAKE"

phyton

It looks like you misspelled 'Python' - try changing the line to

my_tuple = ('I', 'love', 'python')