
Lists and Tuples

Flashcard
•
Computers
•
KG
•
Hard
Mercy Omwoyo
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a list in Python?
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 list ["John", "Harry", "Jesse", "John", "Harry", "Harry"], which item has the index number of 3?
Back
John
4.
FLASHCARD QUESTION
Front
What would this code show on the screen?
Back
5
5.
FLASHCARD QUESTION
Front
For tuples and list which is correct?
Back
List is mutable whereas tuples are immutable.
6.
FLASHCARD QUESTION
Front
people = ["John", "Rob", "Bob"]
print (people[-1])
What would this result be?
Back
Bob
7.
FLASHCARD QUESTION
Front
Which is a correctly declared tuple?
Back
a = ("orange", "yellow", "red")
8.
FLASHCARD QUESTION
Front
Can you have an empty tuple z = () or an empty list w = []?
Back
yes
9.
FLASHCARD QUESTION
Front
Can you have lists inside of tuples and vice versa?
Back
Yes
Similar Resources on Wayground
9 questions
Microsoft Outlook Flashcard Review Game-2

Flashcard
•
9th - 12th Grade
9 questions
Parts of Speech Challenge

Flashcard
•
3rd Grade
9 questions
PYTHON -- Lists (short)

Flashcard
•
9th - 12th Grade
10 questions
Python Data Structures

Flashcard
•
9th - 12th Grade
14 questions
PYTHON -- Lists v2

Flashcard
•
9th - 12th Grade
13 questions
Python Arrays

Flashcard
•
9th - 12th Grade
7 questions
Presidents

Flashcard
•
6th - 8th Grade
5 questions
mini plenary

Flashcard
•
11th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade