Practice Lists in Python - 8 | Lists in Python | Python Programming Language
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

Lists in Python

8 - Lists in Python

Enroll to start learning

You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

Create a list of your favorite colors using square brackets.

💡 Hint: Remember to use square brackets.

Question 2 Easy

Access the third color in your list.

💡 Hint: Remember that indexing starts at 0.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What is the correct way to create a list in Python?

list = (1
2
3)
list = [1
2
3]
list = {1
2
3}

💡 Hint: Think about the symbols used to create a list.

Question 2

True or False: In Python, list indexing starts at 1.

True
False

💡 Hint: Consider how elements are numbered in programming versus regular counting.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a program that manages a list of students, allowing you to add students, remove a student by name, and display the current student list. What would this look like in code?

💡 Hint: Think about how you would use append() and remove() in your implementation.

Challenge 2 Hard

Design a tic-tac-toe board using nested lists. Write the code to display the board and allow a player to place their mark in specified coordinates.

💡 Hint: Consider how you’ll use two indices to navigate the nested lists.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.