Practice List Operations - 8.4 | Lists in Python | Python Programming Language
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

List Operations

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.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What does len() do?

💡 Hint: Think about counting items in a box.

Question 2 Easy

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

Question 1

What does len([1, 2, 3]) return?

1
2
3

💡 Hint: Think about how many items are present.

Question 2

Concatenating [1, 2] and [3, 4] produces which of the following?

[1
2
3
4]
[1
2] + [3
4]
[4
3
2
1]

💡 Hint: Picture combining two groups of numbers.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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!

Challenge 2 Hard

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.