How to sum all numbers in a range in Python

1 Answer

0 votes
start = 3
stop = 8

summ = sum(range(start, stop + 1))

print(summ) 





'''
run:

33

'''

 



answered Jul 22, 2022 by avibootz
...