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.
What is a list in Python?
Remember it's enclosed in `[ ]`.
How do you create an empty list?
Think about the syntax for lists.
What symbol is used to create a list in Python?
Think about the shape of the brackets.
Can a list contain different data types?
Consider examples of mixed data in lists.
Create a list of your top five favorite books and access the third book.
How would you declare a list and access an item?
Write a function that takes a list and returns the first, middle, and last items as a new list.
Think about index positions in lists and how to access them.
5 more questions in this section. Enroll free to practise them all.
Enroll free