Question 8
Consider the following Python code:t = (5, [10, 20], (30, [40, 50],(30,))) Which of the following statements are valid? (Select all that apply)
t[1].append(25)
t[2] += (60,)
t[2][0] = 35
t[2][2].append(60)
t[2][1][0] = 45
Consider the following Python code:t = (5, [10, 20], (30, [40, 50],(30,))) Which of the following statements are valid? (Select all that apply)
t[1].append(25)
t[2] += (60,)
t[2][0] = 35
t[2][2].append(60)
t[2][1][0] = 45
Correct answers
t[1].append(25)
t[2][1][0] = 45
Question 8 of 18 in the IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M IMPROVEMENT AN EXAM QIA4 26 Oct). It carries 4 marks.