БГ
Size: a a a
БГ
A
python3
print(sum((1,2,3)))
6
A
БГ
МД
python3
print(sum((1,2,3)))
6
A
БГ
-̖

A
-̖
-̖
БГ
py3
print(sum(str(i) for i in range(5)))
Traceback (most recent call last):
File "source_file.py", line 1, in <module>
print(sum(str(i) for i in range(5)))
TypeError: unsupported operand type(s) for +: 'int' and 'str'
БГ
БГ
БГ
py3
iter = map(str, range(5))
print(sum(iter))
Traceback (most recent call last):
File "source_file.py", line 2, in <module>
print(sum(iter))
TypeError: unsupported operand type(s) for +: 'int' and 'str'
БГ
БГ
-̖
МД