Search Header Logo

Python lists - append - insert

Authored by Larbi Yazid

Computers

7th - 12th Grade

Used 42+ times

Python lists - append - insert
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

students = ["Abdulla", "Mohamed", "Fatima","Reem"]


How to add "Saif" at the end of the list?

students.add("Saif")

students.insert("Saif")

students[4]="Saif"

students.append("Saif")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [6,7,3,9,2]

How to add 8 at the end of the list?

numbers.append(8)

append numbers(8)

append.numbers(8)

numbers.append[8]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

cars = ["Toyota" , "Lexus" , "Nissan", "Ford"]

How to add after "Lexus" the word "Mercedes"?

cars.insert(3,"Mercedes")

cars.insert(2,"Mercedes")

cars.append("Mercedes")

cars.append(2,"Mercedes")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

weight = [64,78,82,90]

How to add 58 at the beginning of the list?

weight.insert(1,58)

weight.insert(-1,58)

weight.append(58)

weight.insert(0,58)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

colors = ["Red", "Blue", "Green", "Orange"]


How to add "Yellow" between "Green" and "Orange"

colors.insert(2,"Yellow")

colors.insert(3,"Yellow")

colors.insert(4,"Yellow")

colors.insert(5,"Yellow")

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?