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.
Practice Questions
Test your understanding with targeted questions
Create a list of your favorite colors using square brackets.
💡 Hint: Remember to use square brackets.
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
What is the correct way to create a list in Python?
💡 Hint: Think about the symbols used to create a list.
True or False: In Python, list indexing starts at 1.
💡 Hint: Consider how elements are numbered in programming versus regular counting.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
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.
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.