Question 8
What is the output of the following snippet of code? Enter an integer as your answer. lst = ['IIT', ['Madras', '2025'], 'exam']
print(len(lst[0]) + len(lst[1][1]) + len(lst[2]))
What is the output of the following snippet of code? Enter an integer as your answer. lst = ['IIT', ['Madras', '2025'], 'exam']
print(len(lst[0]) + len(lst[1][1]) + len(lst[2]))
Correct answer: 11
Question 8 of 14 in the IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term (IIT M DIPLOMA AN EXAM QDD2 13 July 2025). It carries 4 marks.