Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
Create a list of five favorite colors.
Think of your favorite colors and list them.
What is the output of empty = []?
Remember how we define an empty list.
What symbol is used to create a list in Python?
Think about the brackets for lists.
A list can contain which of the following types?
Recall the definition of lists.
Create a list called 'data' that contains five elements of varied data types. Then access the second item in that list.
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.
Consider how to add items to an empty list.
6 more questions in this section. Enroll free to practise them all.
Enroll free