Practice Introduction to Lists - 23.1.3 | 23. Tuples and dictionaries | Data Structures and Algorithms in Python
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Academics
Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Professional Courses
Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβ€”perfect for learners of all ages.

games

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What is the index of the value 15 in the list [10, 15, 20]?

πŸ’‘ Hint: Count starting from 0.

Question 2

Easy

Define a dictionary to store a student's name and their age.

πŸ’‘ Hint: Use key-value pairs.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What is the first index of a list in Python?

  • 1
  • 0
  • 2

πŸ’‘ Hint: Think about how we start counting.

Question 2

Is it possible to use a list as a key in a dictionary?

  • True
  • False

πŸ’‘ Hint: Reflect on the properties of lists and dictionaries.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Create a dictionary that holds student names as keys and their grades as values. Write a function that finds the average grade.

πŸ’‘ Hint: Use the sum() function and understand how to access values.

Question 2

Design a program that takes a list of numbers as input, creates a dictionary that counts the occurrences of each number, and returns it.

πŸ’‘ Hint: Think about how to iterate through the list and count occurrences.

Challenge and get performance evaluation