CBSE Class 11 Computer Science Question 33 of 114

Tuples — Question 10

Back to all questions
10
Question

Question 10

What will be the output of the following Python code?

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

Error

Reason — tp is not a tuple and holds an integer value hence object of type 'int' has no len()