Python Lists Quiz
- Questions: 15
- Easy
- Pass mark: 70%
A list keeps things in order: the planets from the Sun, a rocket's cargo, a log of sensor readings. This free quiz has 15 short questions on creating, changing and sorting lists in Python, and on two surprises almost every beginner runs into: a second name for the same list, and methods that return None.
What the quiz covers
- Indexing from the front and the back, slicing,
len()andin - Changing items,
append(),insert()andextend() - Removing items with
pop()andremove() sort()vssorted(),min(),max()andsum()- Copying a list, and lists inside lists
How it works
- 15 questions: 11 with one correct answer, 4 where you select every correct answer
- After each question you see the correct answer and a short explanation
- No time limit and no account needed
- Score 70% or more (11 of 15) to pass
Each topic has a runnable example: creating lists, list indexing and modification, append, insert and pop and sorting and reversing lists. After this one, try the Python For Loop Quiz or the Python While Loop Quiz.
This quiz is for registered users. Log in to take it.
Log inLog in to save this result to your progress. Log in
Next up: Creating Tuples →