LISTS in Python

Flashcard
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of these is the best description of a list in Python? A list is a collection of data that has an order and can be changed, A list is a lot of variables, A list is used for shopping, A list is a collection of data that cannot hold duplicated data and cannot be changed
Back
A list is a collection of data that has an order and can be changed
2.
FLASHCARD QUESTION
Front
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]
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
3.
FLASHCARD QUESTION
Front
In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Back
"John"
4.
FLASHCARD QUESTION
Front
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"]
Back
nameList[1]
5.
FLASHCARD QUESTION
Front
Which of these codes is correct for creating a list of numbers? Options: num = ('10','29','37','109'), num = ['10','29','37','109'], num == ('10','29','37','109'), num = ['10 29 37 109']
Back
num = ['10','29','37','109']
6.
FLASHCARD QUESTION
Front
How do I remove something from a list?
Back
variable.remove()
7.
FLASHCARD QUESTION
Front
Which code would I use to add an item to a list? Options: variable.add(), variable.append(), append.variable(), add.variable()
Back
variable.append()
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Equalizer trivia☺️

Flashcard
•
KG
15 questions
General Knowledge

Flashcard
•
KG - University
15 questions
General Knowledge

Flashcard
•
KG - University
15 questions
General Knowledge

Flashcard
•
KG - University
15 questions
General Knowledge

Flashcard
•
KG - University
15 questions
General Knowledge

Flashcard
•
KG - University
15 questions
John Williams

Flashcard
•
KG - University
19 questions
Python Lists

Flashcard
•
11th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University