NEW
Font size
WorksheetsPython list
Total questions: 10
Worksheet time: 5mins
What value is printed to the console?
13
4
22
17
-2
What is printed to the console?
13
4
17
22
What value is printed to console?
22
17
-2
4
thisList = ["square", "circle", "triangle", "octagon"]
print(thisList[3])
octagon
triangle
circle
square
num = [1, 2, 3, 4]
num.append(0)
print(num)
What is the output?
[0,1,2,3,4]
[1,2,3,4,5]
[0,1,2,3]
[1,2,3,4,0]
music = ["rock", "jazz", "blue", "hiphop"]
What is the value of music[-3]?
rock
jazz
blue
hiphop
music = ["rock", "jazz", "blue", "hiphop"]
What is the value of music[2]?
rock
jazz
blue
hiphop
music = ["rock", "jazz", "blue", "hiphop"]
What is the index of "hiphop"?
1
2
3
4
Which one is the list?
{"pop", "rock", "jazz", "blue", "hiphop"}
{"pop": "kpop", "blue", "rock", "jazz": "hiphop"}
["pop", "rock", "jazz", "blue", "hiphop"]
("pop", "rock", "jazz", "blue", "hiphop")
Which one is true about list?
store only the same data type
the item is ordered by index
access by using key
can't change the value in the list
