>>> open('foo') * 3 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for *: '_io.TextIOWrapper' and 'int'