#Variables
total = 0
day = 0
car = 0
while day <= 4:
day += 1
if day <= 5:
print('Cars sold on day', day, end = ': ',)
carSold = int(input(''))
for amount in range(carSold):
print('Selling price of car', amount + 1, end = ':\t')
price = int(input('$'))
if day >= 5:
total += price
car += carSold
print('\nYou sold', car, 'cars for a total of $', format(total,',.2f'))
The different configurations I have tried all either add after every input or just the last value.