Question OOP-POLY-0077
HardIn Python, why does 1 + '2' raise TypeError but '1' * 2 work?
- A.
str implements mul for integers, but int's add doesn't accept strings and str has no matching radd
- B.
Python can't add numbers
- C.
Sign up free to see the answer and a step-by-step explanation.