KnowledgeBoat Logo
|

Computer Science

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

Python Tuples

5 Likes

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'

Answered By

2 Likes


Related Questions