CBSE Class 11 Computer Science Question 59 of 88

Tuples and Dictionary — Question 24

Back to all questions
24
Question

Question 14(a)

Consider the following code and find out the error:

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

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