Practice - Extending a List with Another List
Practice Questions
Test your understanding with targeted questions
What happens when you use append on a list?
💡 Hint: Think about where in the list it will go.
Is append used to add multiple values?
💡 Hint: Consider `extend` if adding more than one value.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does list.append(10) do?
💡 Hint: Where would a new item typically go in a list?
Does list1 = list1 + [20] effectively modify list1?
💡 Hint: What happens when you create a new reference?
1 more question available
Challenge Problems
Push your limits with advanced challenges
Write a program to collect user input numbers until they provide a value of 0. Store these numbers in a list and display the total sum and count of entered numbers.
💡 Hint: Consider how to stop collecting input when reaching `0`.
Create a function that takes in two lists and returns a new list that contains only the items that exist in both original lists.
💡 Hint: This is a classic 'intersection' exercise.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.