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 Python Collections (Retired) Tuples Two-ples


Dictionaries use what special operator to unpack: for example, when using str.format( my_dictionary ). Tuples, however, use the alternative string.format( my_tuple).

I can't answer this question.

formating usually works like this

name = "john"

"Hi there {} how are you?".format(name)

2 Answers

andi mitre
andi mitre
Treehouse Guest Teacher

Hey Thomas..

Dictionaries use ** while tuples use *


Steven Parker
Steven Parker
229,968 Points

:point_right: Hint: the question is not about formatting, even though a format statement was used as an example.

The question wants you to fill in the symbols that represent "unpacking" of dictionaries and tuples.

:point_right: Another hint: In both cases, the symbols share a specific non-alphanumeric character.

:grimacing: Drat, andi, I was tying to give clever hints and not just the answer.