LISTS in Python
Flashcard
•
University
•
Practice Problem
•
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()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
18 questions
Geography General Knowledge
Flashcard
•
KG
10 questions
Holi and St. Patrick's Day Trivia
Flashcard
•
KG
15 questions
Nouns and Verbs
Flashcard
•
KG - University
15 questions
3.2.R.1 Post Test Main Idea & Key Details
Flashcard
•
KG - University
15 questions
Shiloh Chapters 1-4
Flashcard
•
KG - University
15 questions
Mathematics
Flashcard
•
KG
16 questions
8th Grade STAAR Review US History
Flashcard
•
KG - University
15 questions
011_Technical Change Management-CompTIA Security+ SY0-701-1.3
Flashcard
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University