Answer the question
In order to leave comments, you need to log in
How to fix TypeError: unsupported operand type(s) for +: 'int' and 'str'?
s = input("введи штрих код")
pudge = 0
a =''
b =''
for i in range(0,len(s),2):
a += s[i]
for i in range(1, len(s), 2):
b += s[i]
gg = list(a)
gg1 = list(b)
print(sum(gg))
print(gg1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question