Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Ella Ruokokoski
Ella Ruokokoski
20,868 Points

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')