Sum of few numbers by using for and range

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


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


More information about the Python-list mailing list