In Python, why can I multiply a string by a number, but I can't add a ...
Rather than open such a can of worms, Python generally avoids using operator overloading to do implicit type conversion. Where operations can be done on different types, as with string multiplication, the behavior is specifically defined to make use of each type as what it is, not convert it to something else. Share Follow