
Lists in Python

Flashcard
•
Computers
•
9th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of these is the best description of a list in Python?
Back
A list is a collection of data that has an order.
2.
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]
3.
FLASHCARD QUESTION
Front
How do I remove something from a list?
Back
variable.remove()
4.
FLASHCARD QUESTION
Front
An empty list can be declared as
Back
fruitList = []
5.
FLASHCARD QUESTION
Front
Each item in a list has an "address". The first address in a Python list is what?
Back
0
6.
FLASHCARD QUESTION
Front
Which of the following is the correct way to add the number 4 to mylist? Options: mylist + 4, mylist.append(4), mylist.append([4]), 4.append(mylist)
Back
mylist.append(4)
7.
FLASHCARD QUESTION
Front
What is used to separate elements in a list?
Back
Comma
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Ionic bonding

Flashcard
•
9th Grade
7 questions
Paragraphs, Headings, and Lists

Flashcard
•
7th Grade
10 questions
Food Packaging

Flashcard
•
8th - 9th Grade
11 questions
Isotopes

Flashcard
•
9th Grade
10 questions
Acids and Bases

Flashcard
•
10th Grade
8 questions
Nomenclatura inorganica Fermi 24/25

Flashcard
•
10th Grade
10 questions
Review Part 2 for Final

Flashcard
•
9th Grade
10 questions
Ancient Rome Pretest

Flashcard
•
9th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade