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
Create a dictionary to store three fruits and their prices.
π‘ Hint: Use fruit names as keys and their prices as values.
Question 2
Easy
Access the price of 'banana' from the dictionary you created.
π‘ Hint: The key is 'banana'.
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 is the data type used for keys in a Python dictionary?
π‘ Hint: Think about what dictionaries use to access values.
Question 2
True or False: You can have duplicate keys in a dictionary.
π‘ Hint: Consider the purpose of keys.
Solve 2 more questions and get performance evaluation
Push your limits with challenges.
Question 1
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.
Question 2
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.
Challenge and get performance evaluation