Sum of few numbers by using for and range

^Bart gabriele1NOSPAM at hotmail.com
Sun Feb 17 11:22:08 EST 2019


Hello!

I need to do what I wrote in the subject but... I don't understand how 
could I fix my code... :\

number1 = int( input("Insert the first number:"))
number2 = int( input("Insert the second number:"))
number3 = int( input("Insert the third number:"))

print("Total amount is:")

for x in range(number1,number3):
     y = x+x
     print(y)

Regards.
^Bart


More information about the Python-list mailing list