This has been the hardest one so far, I had a lot of trouble geting the range to work as I wanted it to, to solve my problem I checked out this post:

ilkapython: https://ilkapython.wordpress.com/2015/09/18/wsq07-sum-of-numbers/

I finally found the “for r in range (x,y)” part, and with that I was able to finish my program:

kj sa

CC BY 4.0 Sum of numbers by juansalvadorfernandez is licensed under a Creative Commons Attribution 4.0 International License.