Practice Extending A List With Another List (12.2.5) - Manipulating lists
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

Extending a List with Another List

Practice - Extending a List with Another List

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What happens when you use append on a list?

💡 Hint: Think about where in the list it will go.

Question 2 Easy

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

Question 1

What does list.append(10) do?

Adds 10 to the start of the list
Adds 10 to the end of the list
Removes 10 from the list

💡 Hint: Where would a new item typically go in a list?

Question 2

Does list1 = list1 + [20] effectively modify list1?

True
False

💡 Hint: What happens when you create a new reference?

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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`.

Challenge 2 Hard

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.