Would the following code work for creating a list? friends = {"Monica", "Ross", "Rachel", "Phoebe", "Joey", "Chandler"}
PYTHON -- Lists v2

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

14 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
No
2.
FLASHCARD QUESTION
Front
Which symbols are used to open and close a list? ( ) round brackets AKA parentheses, { } curly brackets, [ ] square brackets, " " double quote marks, < > angle brackets AKA chevrons
Back
[ ] square brackets
3.
FLASHCARD QUESTION
Front
Which line of code is the correct way to create a list of names? Options: nameList = John, Harry, Jesse, John, Harry, Harry; nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry"); nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]; nameList = [John, Harry, Jesse, John, Harry, Harry]; nameList = (John, Harry, Jesse, John, Harry, Harry)
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
4.
FLASHCARD QUESTION
Front
What's the index value of list item "Robert" in names = ["Bob", "Bobby", "Robert", "Rob"]?
Back
2
5.
FLASHCARD QUESTION
Front
Which list item has the index value of 3? ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Back
"John"
6.
FLASHCARD QUESTION
Front
Which line of code would insert the string "strawberries" in the first position of the fruit list? Options: fruit("strawberries", 1), fruit("strawberries", 0), fruit(1, "strawberries"), fruit[1:1] = ["strawberries"]
Back
fruit[1:1] = ["strawberries"]
7.
FLASHCARD QUESTION
Front
What data type are the list items shown in the screenshot?
Back
Integers
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
10 questions
Python Data Structures

Flashcard
•
10th Grade
9 questions
Lists and Tuples

Flashcard
•
KG
12 questions
Python Functions

Flashcard
•
9th - 12th Grade
12 questions
Python Functions

Flashcard
•
9th - 12th Grade
12 questions
AP CSP Loops Practice

Flashcard
•
9th - 12th Grade
11 questions
Python [Basic]

Flashcard
•
KG
9 questions
US History

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade