Always ensure that the operands in concatenation operations are of the same data type. Use str() to convert integers to strings if needed.
print("A"*3)
print(5*3)
print("15" + 3)
print("15" + "13")
"A"*3 produces the string "AAA" by repeating "A" three times.5*3 results in 15 from integer multiplication."15" + "13" concatenates the strings "15" and "13" to form "1513"."15" + 3 raises a TypeError because concatenation of a string ("15") and an integer (3) is not permitted.