Skip to content

Total Sum in Range

Andrew Burke edited this page Apr 3, 2024 · 6 revisions
def sum_range(start, stop):
	total = 0
	for num in range (start, stop + 1):
		total += num
	return total
Clone this wiki locally