I want to implement a def suma_naturales_hasta(n)
function.
For this I could use a for
loop that would go through the number that I entered, that is, if I put 3, that the sum is 1 + 2 + 3.
How could I implement this for
? Should I use the range()
function?