8.4 - List Operations
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does len() do?
💡 Hint: Think about counting items in a box.
How can you check if 'banana' is in a list called fruits?
💡 Hint: Look for it as you would search for a fruit in a basket.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does len([1, 2, 3]) return?
💡 Hint: Think about how many items are present.
Concatenating [1, 2] and [3, 4] produces which of the following?
💡 Hint: Picture combining two groups of numbers.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a list of 10 integers, concatenate it with another list of 5 integers, and return the total length.
💡 Hint: Think about how two collections combine!
Write a program that checks if certain fruits are in a list and prints the result.
💡 Hint: How can you keep checking each fruit one by one?
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.