CBSE Class 11 Computer Science Question 10 of 114

Tuples — Question 10

Back to all questions
10
Question

Question 10

What does a * b amount to if a and b are tuples?

Answer

If a and b are tuples then a * b will throw an error since a tuple can not be multiplied to another tuple.

TypeError: can't multiply sequence by non-int of type 'tuple'