Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβperfect for learners of all ages.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
What is the syntax to create an empty dictionary?
π‘ Hint: Remember to use the correct symbols in Python.
Question 2
Easy
How would you retrieve a value from a dictionary?
π‘ Hint: Think about how you access a list.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What does a dictionary in Python use to store its items?
π‘ Hint: What does a dictionary start and end with in Python?
Question 2
True or False: Keys in a dictionary must be immutable.
π‘ Hint: Consider what data types you can use for keys.
Solve 2 more questions and get performance evaluation
Push your limits with challenges.
Question 1
Create a dictionary containing information about three different books, including title, author, and year published. Write a function to return the book titles only.
π‘ Hint: Consider how to loop through the dictionary's items.
Question 2
Write a program that takes a string and counts the occurrence of each character, storing them in a dictionary. Then print the dictionary.
π‘ Hint: Loop through the string and think about how youβd keep track of counts.
Challenge and get performance evaluation