Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Options:
nameList() ,
nameList[1] ,
NameList(4) ,
nameList["4"]
Python Lists

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

3 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
nameList[1]
2.
FLASHCARD QUESTION
Front
The list needs one more name added to the end - "Felipe". Which piece of code below would do this?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Options:
nameList.append(Felipe),
append(nameList,"Felipe"),
nameList.append["Felipe",7],
nameList.append("Felipe")
Back
nameList.append("Felipe")
3.
FLASHCARD QUESTION
Front
To insert the string "strawberries" in the first position of a list we use
Back
fruit.insert(0, "strawberries")
Similar Resources on Quizizz
6 questions
Preppy

Flashcard
•
KG - Professional Dev...
6 questions
Preppy

Flashcard
•
KG - Professional Dev...
10 questions
Python Data Structures

Flashcard
•
10th Grade
9 questions
AP CSP List Review

Flashcard
•
9th - 12th Grade
4 questions
Mateo 9-11

Flashcard
•
9th - 12th Grade
5 questions
Sargent - painter

Flashcard
•
9th - 12th Grade
6 questions
Preppy

Flashcard
•
KG - Professional Dev...
6 questions
Preppy

Flashcard
•
KG - Professional Dev...
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