For Loops Exercise and Solution 2

Exercise 2: Write a program that reads price of 5 products, calculates and displays the total price.

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

For more details, please contact me here.
Date of last modification: 2021