+ 1
How do i sum the output of an iteration in Python
for example for x in range(0,20): print(x) please how do i get the sum of the output
4 ответов
+ 3
x=sum(range(0,20))
print(x)
+ 3
Quickest way, using this example:
print(sum(range(0,20)))
0
Thanks worked...
0
Thanks all