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

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

9 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
8.
FLASHCARD QUESTION
Front
Which line of code would allow us add "Felipe" to the end of the nameList list? Options: nameList.append(Felipe), nameList(append,"Felipe"), nameList.append("Felipe"), nameList.append["Felipe"]
Back
nameList.append("Felipe")
9.
FLASHCARD QUESTION
Front
Which line of code would print the fruitList list? Options: print(fruitList), list(print), fruitList.print(), fruitList(print)
Back
print(fruitList)
Similar Resources on Quizizz
9 questions
Microsoft Outlook Flashcard-Review game

Flashcard
•
9th - 12th Grade
8 questions
Joshua Bassett

Flashcard
•
8th - 12th Grade
10 questions
Tuskegee Airmen

Flashcard
•
9th - 12th Grade
12 questions
Felipe Alou CH 2 Team Pre-assess

Flashcard
•
9th - 12th Grade
10 questions
breaking Bad flashcard

Flashcard
•
KG - Professional Dev...
5 questions
Review Lists in Python (before Lab 8)

Flashcard
•
9th - 12th Grade
7 questions
Greatest Common Factor

Flashcard
•
9th - 12th 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