Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Lists in Python - Activity#1
0
%
0
0
0
Back
Restart
What is the output of the following segment?
["C"]
Oops!
Okay!
___________________ method adds a single element to the end of the list.
append( )
Oops!
Okay!
How do you get the length of the list grades? grades = [2.0, 3.0, 4.0]
len(grades)
Oops!
Okay!
____________________ method can be used to add an element at a specified index/location in a list.
insert( )
Oops!
Okay!
What is numbers [-3]? numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
8
Oops!
Okay!
Write the Python code that changes the 4th element in list numbers to 9.
numbers[3] = 9
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies