How to Add Numbers without Using Arithmetic Operator in Python

Опубликовано: 13 Июнь 2026
на канале: True != False
1,417
31

How to Add Numbers without Using Arithmetic Operator in Python?? This Question Was asked in TCS Python Interview on 9 June.

Code -
var1 = 7
var2 = 109
l=[]
for i in range(var1):
l.append(1)
for i in range(var2):
l.append(1)
print(f"total:{len(l)}")