Practice Introduction To Lists (7.2.2) - Lists - Part A - 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 syntax to create a list named 'colors' containing red, green, and blue?

💡 Hint: Remember to use square brackets.

Question 2 Easy

How would you retrieve the second item from a list named 'fruits'?

💡 Hint: Indexing starts at 0!

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does slicing a list mean?

💡 Hint: Think about how you define the part you want.

Question 2

True or False: Lists in Python can only contain elements of the same type.

💡 Hint: Recall the example of a mixed list.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a list of your favorite movies, then create a nested list where each sub-list contains the movie's title, year released, and a rating out of 10.

💡 Hint: Think about how to structure your data.

Challenge 2 Hard

Given a list containing mixed data types: mixed_data = [123, 'hello', [1, 2, 3], True], write a Python command to replace 'hello' with 'world'.

💡 Hint: Remember that indexing starts at 0 when wanting to change 'hello'.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.