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 trialThomas Katalenas
11,033 Pointsstr.format
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
Treehouse Guest TeacherHey Thomas..
Dictionaries use ** while tuples use *
Cheers
Steven Parker
231,275 PointsHint: 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.
Another hint: In both cases, the symbols share a specific non-alphanumeric character.
Drat, andi, I was tying to give clever hints and not just the answer.