Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a dictionary in Python?
Think about how you organize data.
How do you access the value for a key in a dictionary?
What would you use to find a value?
What is a dictionary in Python?
Consider how information is structured.
True or False: In a Python dictionary, keys must be unique.
Think about the purpose of a key.
Write a function that takes a dictionary of products (with keys as product names and values as prices) and returns the total price of the products.
What function gives you all the values of a dictionary?
Create a dictionary for a book with several attributes (title, author, year, price). Then write code to update the price and print the entire dictionary.
How do you change a value in a dictionary?
5 more questions in this section. Enroll free to practise them all.
Enroll free