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 Tuples With Functions

William Higgins
William Higgins
5,904 Points

tuple quiz question: what is expected in the blanks?

What is expected in the underlined?

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

dictionaries use .items method and tuples use enumerate() function. When I enter versions of those answers, I get the question wrong.

Thanks.

2 Answers

  1. **
  2. *

The * (or some variant) will be used as a way to say "all of them" elsewhere as well.

Please upvote and vote as best answer if this was helpful!

** and * respectively.