Computer Science

Consider the following code and find out the error:

tup1 = (10, 20, 30)        
tup2 = tup1 * (3, )  

Python Tuples

1 Like

Answer

The code will result in an Error because the multiplication operation between a tuple and another tuple is not valid in Python.

Answered By

1 Like


Related Questions