Python Lists

Python Lists

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What symbol is associated to lists in Python?

Back

[ ]

2.

FLASHCARD QUESTION

Front

When does indexing start for lists in Python?

Back

0

3.

FLASHCARD QUESTION

Front

How do you create a list in Python that contains 1, 2, and 3?

Back

numbers = [1, 2, 3]

4.

FLASHCARD QUESTION

Front

How do you create a list in Python that contains 43.0, "A", True and 2?

Back

data = [43.0, "A", True, 2]

5.

FLASHCARD QUESTION

Front

What is the output of integers[1] where integers = [10, 20, 30, 40, 50]?

Back

20

6.

FLASHCARD QUESTION

Front

What is the output of integers[0] where integers = [10, 20, 30, 40, 50]?

Back

10

7.

FLASHCARD QUESTION

Front

What is the output of integers[5] where integers = [10, 20, 30, 40, 50]?

Back

Index Error

Create a free account and access millions of resources

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?