Why ‘1’+’2′ = ’12’ in Python
In Python, ‘1’ + ‘2’ is equal to ’12’. This is because both ‘1’ and ‘2’ are strings so the + operation adds one string to the end of the other. This is called string concatenation. If you used integers instead, the result would be 3. What Is String Concatenation in Python String concatenation in …