Which of these is the correct code for creating 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]
Review Lists in Python (before Lab 8)

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

5 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
2.
FLASHCARD QUESTION
Front
Which of these pieces of code would return the name "John" from the following list? nameList = ["John", "Harry", "Jesse", "Pasquale", "Nick", "Joe"] Options: nameList[1], nameList[0], nameList["1"], nameList["0"]
Back
nameList[0]
3.
FLASHCARD QUESTION
Front
What is the position of the name "Robert" in the following list: 0, 1, 2, 3
Back
2
4.
FLASHCARD QUESTION
Front
To print a list called fruitList we use
Back
print(fruitList)
5.
FLASHCARD QUESTION
Front
What is the output of this code fragment?
Back
Calculates the average of the numbers in the list
Similar Resources on Wayground
9 questions
Lists and Tuples

Flashcard
•
KG
9 questions
AP CSP List Review

Flashcard
•
9th - 12th Grade
3 questions
Star Wars knowledge

Flashcard
•
KG - 12th Grade
7 questions
CodeHS 2.8 Functions to 2.12 User Input Review

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

Flashcard
•
9th - 12th Grade
10 questions
AP CSP Photo App List Flashcard

Flashcard
•
9th - 12th Grade
6 questions
Preppy

Flashcard
•
KG - Professional Dev...
3 questions
Python Lists

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Computers
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade