Computer Science

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

Python Tuples

2 Likes

Answer

0

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

Answered By

2 Likes


Related Questions