How do I go about making this loop repeat and calculate a running total of 10 times then stop? I know I have to use the range function, does it go above my int inputs? picture of my code on replit
here's my code:
total = 0.0
max = 10
number_one = int(input("Enter a number:"))
first_sum = number_one
print("The total is", format(first_sum, ",.1f"), sep= " ")
number_two = int(input("Enter a number:"))
second_sum = number_one + number_two
print("The total is", format(second_sum, ",.1f"), sep= " ")
number_three = int(input("Enter a number:"))
third_sum = number_one + number_two + number_three
print("The total is", format(third_sum, ",.1f"), sep= " ")
number_four = int(input("Enter a number:"))
fourth_sum = number_one + number_two + number_three + number_four
print("The total is", format(fourth_sum, ",.1f"), sep= " ")