Python-Quizzes | Python List Quiz | Question 21

Last Updated :
Discuss
Comments

Find the output of the following program: 

a = []
a.append([1, [2, 3], 4])
a.extend([7, 8, 9])
print(a[0][1][1] + a[2])

Type Error

12

11

38

Share your thoughts in the comments