10
Question Question 10
What will be the output of the following Python code?
tp = (5)
tp1 = tp * 2
print(len(tp1)) - 0
- 2
- 1
- Error
Error
Reason — tp is not a tuple and holds an integer value hence object of type 'int' has no len()
What will be the output of the following Python code?
tp = (5)
tp1 = tp * 2
print(len(tp1)) Error
Reason — tp is not a tuple and holds an integer value hence object of type 'int' has no len()