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

Jennifer Sherwood
Jennifer Sherwood
896 Points

"Items" in Dictionary videos

Where were "items" covered in the Dictionary videos in Python Collections?

Tabatha Trahan
Tabatha Trahan
21,410 Points

Is there a particular quiz question or challenge you are referring to with "items"? I found the last question in the first challenge where it asks you to create an new key value pair with the key being "items", and the value is another dictionary. The key thing to remember with dictionaries (no pun intended) is that they are similar to arrays, but rather than having an index, each value has a key, forming a key:value pair. So if you want to access an item (value), you would use the key to get that value rather than an index like you would from an array. Let me know if this isn't what you're talking about and I can help find the answer to your question.

1 Answer

Jennifer Sherwood
Jennifer Sherwood
896 Points

It was from the last item in the last challenge. I didn't understand the solution as well as I wanted to, and in researching I found a reference to "items". I wanted to go back and re-watch the video that explained "items".