Practice - Summary of Dictionaries
Practice Questions
Test your understanding with targeted questions
Create a dictionary to store three fruits and their prices.
💡 Hint: Use fruit names as keys and their prices as values.
Access the price of 'banana' from the dictionary you created.
💡 Hint: The key is 'banana'.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is the data type used for keys in a Python dictionary?
💡 Hint: Think about what dictionaries use to access values.
True or False: You can have duplicate keys in a dictionary.
💡 Hint: Consider the purpose of keys.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a nested dictionary for three sports teams, with each team having players and their respective scores. Write a function to calculate the total score for each team.
💡 Hint: Loop through team names and sum their player scores.
Given a dictionary representing book titles and authors, write a function that returns a list of authors whose names start with a vowel.
💡 Hint: Filter authors by checking the first letter.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.