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 repeats the string "A" three times, resulting in "AAA".5*3 performs integer multiplication, resulting in 15."15" + "13" concatenates two strings, resulting in "1513"."15" + 3 raises a TypeError because Python does not allow concatenation of a string ("15") and an integer (3).| Particulars | 31-03-2024 (₹) | 31-03-2023 (₹) |
|---|---|---|
| Equity Share Capital | 12,00,000 | 8,00,000 |
| 11% Debentures | 3,00,000 | 4,00,000 |
| Securities Premium | 1,40,000 | 1,00,000 |