

Midtest
Presentation
•
World Languages
•
KG
•
Practice Problem
•
Hard
joeee joeee
Used 2+ times
FREE Resource
1 Slide • 4 Questions
1
reference code to finish test
2
Multiple Choice
Joe wants to add the number 6 to the end of the list.
Which one of the following is the correct way to do so?
1. numbers.add(6)
2. numbers.append(6) 3. numbers.push(6) 4. numbers.put(6)
Find the same example code as option
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
3
Multiple Choice
Joe changes his mind. That is, he does not end up adding 6 to the end of the list. Instead, Joe wants to remove the last number 2 from the end of the list.
Which one of the following is the correct way to do so?
1. numbers.pop()
2. numbers.delete() 3. numbers.erase() 4. numbers.remove()
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
4
Multiple Choice
Joe now also wants to remove the first number 1 from the list. Which one of the following is the correct way to do so?
1. numbers.pop(1)
2. numbers.delete(1) 3. numbers.erase(1) 4. numbers.remove(1)
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
5
Multiple Choice
Joe wants to retrieve the second number 5 from the list.
Which one of the following is the correct way to do so?
1. numbers[1] 2. numbers[2] 3. numbers[5]
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
reference code to finish test
Show answer
Auto Play
Slide 1 / 5
SLIDE
Similar Resources on Wayground
3 questions
A, AN
Presentation
•
3rd Grade
3 questions
ALL AMERICAN-UNIT 2: ART OR PRANK?
Presentation
•
9th Grade
6 questions
ATIN2_Part3_Session18
Presentation
•
Professional Development
7 questions
frutas - compañeros 1
Presentation
•
KG - Professional Dev...
5 questions
Traditional Source vs Web Source
Presentation
•
7th - 8th Grade
2 questions
english for basic
Presentation
•
1st Grade
8 questions
prepositions of place
Presentation
•
4th Grade
6 questions
Two Truths And A Lie (Potential + Kinetic Energy)
Presentation
•
4th - 6th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade