Practice - Common List Functions
Practice Questions
Test your understanding with targeted questions
What does the append() method do?
💡 Hint: Think about how you can grow a list.
Explain what happens if you try to remove an item that does not exist in the list.
💡 Hint: What type of error is raised in Python?
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does the extend() method do?
💡 Hint: What method is used to combine two lists?
True or False: The remove() method can delete multiple occurrences of a value at once.
💡 Hint: Consider how many items are affected by a single function call.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Implement a function filter_list(lst, value) that removes all instances of value from the list lst, then returns it. Ensure to handle empty lists and lists with no occurrences of value gracefully.
💡 Hint: Use a loop to keep checking for the value until it is no longer in the list.
Create a list manipulation program that accepts user input to add or remove elements, allowing the user to choose multiple operations until they opt-out. Display the current list after each operation.
💡 Hint: Consider how to use conditional statements to control the flow.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.