def main():
    i=0
    total=0
    num_item = int(input("Number of items: "))
    while i < num_item:
        price = float(input("Price of item : "))
        total += price
        i+=1
    print("Total ", total)
main()





