Python-Quizzes | Python Tuples Quiz | Question 7

Last Updated :
Discuss
Comments

What is the output of the following program?

Python
tup = (2e-04, True, False, 8, 1.001, True)
val = 0
for x in tup:
    val += int(x)
print(val)

12

11

11.001199999999999

TypeError

Share your thoughts in the comments