Search Header Logo

Python_List_fun

Authored by GHIS 2023

Computers

Used 11+ times

Python_List_fun
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which List is Correct

my_list =

[1, "Hello", 3.4]

my_list = [1, 2, 3.4]

my_list = [ ]

All the previous

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add items to a python list

insert()

append()

Extend()

All previous

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

numbers = [21, 34, 54, 12]

numbers.----------------(32)

#The output is [21, 34, 54, 12,32]

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

my_list = [1, "Hello", 3.4]

The index of "Hello" in the previous list is ------------

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To Combine items of two lists in python we use ---------------- method

extend()

insert()

merge()

all previous

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

vowel = ['a', 'e', 'i', 'u']

vowel.----------------(3, 'o')

print('List:', vowel)

 

# Output: List: ['a', 'e', 'i', 'o', 'u']

append

pop

insert

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

languages = ['Python', 'Swift', 'C++', 'C', 'Java', 'Rust', 'R']

languages.---------------('Python')

print(languages)

# The Output is ['Swift', 'C++', 'C', 'Java', 'Rust', 'R']

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?