total_price=0 for i in range(5): price=float(input("Enter the price ")) total_price=total_price+price print("the total price is ",total_price)