Computer Science

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

Python Tuples

3 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

1 Like


Related Questions