QuizΒΆ
What does the following program print?
t = (32, 41, 20, 17)
a, b, c, d = t
print(c)
a program error occurs
2
20
3
What does the following program print?
a = (1, 2, 3)
print(a[1])
1
2
a program error occurs
3
Which range contains just values 1, 2, 3?
range(4)
range(1, 4)
range(3)
range(1, 3)
How many values does range(1, 10, 2) contain?
5
6
9
10