CBSE Class 11 Computer Science Question 32 of 114

Tuples — Question 9

Back to all questions
9
Question

Question 9

What will be the output of the following Python code ?

tp = ()
tp1 = tp * 2
print(len(tp1))
  1. 0
  2. 2
  3. 1
  4. Error
Answer

0

Reason — Empty tuples multiplied with any number yield empty tuples only.