Practice Introduction To Lists (23.1.3) - Tuples and dictionaries - Data Structures and Algorithms in Python
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Introduction to Lists

Practice - Introduction to Lists

Learning

Practice Questions

Test your understanding with targeted questions

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.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

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.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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.

Challenge 2 Hard

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.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.