list[a:b] will return the portion of list starting with index a and ending before index b.
Python - Lists, Dictionaries and Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Roberto Frontera
Used 147+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of last_jedi after the following code is run?
["kylo", "rey", "finn", "luke"]
["kylo", "rey", "finn"]
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of authors after the following code is run?
["Martin", "Rowling", "Tolkien"]
["Martin"]
["Rowling"]
["Tolkien", "Rowling", "Martin"]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code print?
6
1
pants
"pants": 6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of colors after the following code is run?
["light blue", "pink"]
["light blue", "yellow", "pink"]
["pink", "yellow"]
["light blue", "yellow"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to write a for loop to iterate through the list grades?
for variable:
for variable in grades
variable in grades:
for variable in grades:
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following code do?
It prints [0, 6].
It prints all numbers in range(0, 6) in a list.
It prints all numbers in range(0, 6) separately.
It prints True or False.
Create a free account and access millions of resources
Similar Resources on Quizizz
45 questions
GCSE Python Legends

Quiz
•
1st - 12th Grade
44 questions
python

Quiz
•
10th Grade
37 questions
End of Unit Assessment - EduBlocks

Quiz
•
9th - 12th Grade
37 questions
AP CSA Review Set #1

Quiz
•
9th - 12th Grade
45 questions
Psuedocode iterations

Quiz
•
11th Grade
35 questions
CodeHS - Web Design Test on HTML & CSS

Quiz
•
9th - 12th Grade
40 questions
FBLA Exploring Computer Science

Quiz
•
6th - 12th Grade
43 questions
CS1 End-o-year Review

Quiz
•
10th 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
30 questions
Linear Inequalities

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

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