
el ejercicio es este:
Citar
Create a function addNumbers(start, end) that adds all the integers between the start and end value (inclusive) and returns the total sum.
Examples
>>> addNumbers(5, 10)
45
>>> addNumbers(1, 1)
1
Examples
>>> addNumbers(5, 10)
45
>>> addNumbers(1, 1)
1
y empieza asi: (es inamovible)
Citar
def addNumbers(start, end):
total =
while start
total =
while start
si tuviera una variable para usarla de contador creo sabria hacerlo, pero ¿asi? ni idea

Saludos