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

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,422 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".