How do you create an empty list in python
Python Lists

Quiz
•
Other
•
Professional Development
•
Hard

Ajay Tech
Used 76+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
[ ]
{ }
( )
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How to create a new empty list in python
[ ]
list ( )
list.init( )
create.list ( )
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
grades = [2.0, 3.0, 4.0]
Which of the following code can be used to iterate over the grades list ?
for grade in grades :
# todo
i = 0
while i < len(grades) :
#todo
i = i + 1
[print ( i ) for i in grades]
for i, grade in enumerate(grades) :
# todo
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
grades = [2.0, 3.0, 4.0]
How do you get the length of the list above
len(grades)
length(grades)
list.length(grades)
list.len(grades)
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
a = [ 1, 3, 5 ]
b = [ 7, 9, 11 ]
How do you merge these two lists ?
a + b
a.extend(b)
a.merge(b)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
numbers [-3]
What is numbers [-3]
8
9
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [1,2,3,4,5,6,7,8,9,10]
print ( numbers[-3] == numbers[7])
The output of the program above is
True
False
Create a free account and access millions of resources
Similar Resources on Quizizz
45 questions
Soal PPPK Guru - Pedagogik

Quiz
•
Professional Development
45 questions
แบบทดสอบวิชาไมโครคอนโทรลเลอร์

Quiz
•
KG - Professional Dev...
47 questions
Rhythm Strip Interpretations Quiz WK 2 (115)

Quiz
•
Professional Development
53 questions
HTML And CSS

Quiz
•
4th Grade - Professio...
45 questions
PLC TEST

Quiz
•
Professional Development
49 questions
PKPM WA

Quiz
•
Professional Development
51 questions
SAP Transportation Management Quiz 51 - 100

Quiz
•
Professional Development
50 questions
MRO (Maintenance, Repair & Operations)

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade