Which line of code is correct for creating a list of numbers?

Python Lists

Quiz
•
Computers
•
10th Grade
•
Hard
Irene Feng
Used 4+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
num = ('10','29','37','109')
num = [10,29,37,109]
num = (10,29,37,109)
num = ['10 29 37 109']
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the index of the element with value 'Spain'?
['England','Brazil','Spain','France']
0
1
2
3
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which functions can I use to add an item(s) to a list?
variable.add()
variable.append()
variable.insert()
variable.extend()
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do i remove something from a list?
variable.pop()
del variable[index]
variable.remove()
variable.del()
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following is valid python code for the list p?
p = [99, 9, 2, 33, 11]
p[5]
p[1:3]
p[2:]
p[2:0]
p[1:5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is lis after this code is run?
Error
None
[2,3,4,23]
[2,3,4,2,3]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
[1, 2, 3]
[1, 2, 3, 4]
[4, 1, 2, 3]
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Python Variables

Quiz
•
7th - 12th Grade
11 questions
CodeHS 5.3 Using Arrays

Quiz
•
9th - 12th Grade
15 questions
BASIC C PROGRAMMING

Quiz
•
University
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
10 questions
Python Dictionaries

Quiz
•
University
10 questions
C#

Quiz
•
11th Grade
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

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

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University