20.2 - Creating a List
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 five favorite colors.
💡 Hint: Think of your favorite colors and list them.
What is the output of empty = []?
💡 Hint: Remember how we define an empty list.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What symbol is used to create a list in Python?
💡 Hint: Think about the brackets for lists.
A list can contain which of the following types?
💡 Hint: Recall the definition of lists.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a list called 'data' that contains five elements of varied data types. Then access the second item in that list.
💡 Hint: Make sure to look at indexing!
Write a Python snippet that initializes an empty list and then adds the numbers 1 to 5 to it.
💡 Hint: Consider how to add items to an empty list.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.