Get startedGet started for free

Which keys?

Recall that dictionaries are composed of key:value pairs. To access the value of a key, you can use bracket notation on the dictionary and pass in the key. There are also methods specific to dictionaries you can use to determine the keys and their values. The avocados dictionary is available in the session for you to explore.

Which of the following strings is NOT a key in the dictionary avocados?

This exercise is part of the course

Python for MATLAB Users

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise