Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Final Quiz
3. Question 2
Summary

Instruction

Perfect! Now, let's use some pieces of information from another CSV file for calculation purposes.

Exercise

Each line in the furniture_receipt.csv file contains an item and the amount paid for it. Read the entire file, add up all amounts, and print the following sentence:

Total amount spent on furniture: {x}

The furniture_receipt.csv file has two columns, item and amount, but there is no header row. The file uses semicolons as field delimiters.

Stuck? Here's a hint!

To specify the delimiter, use the following line:

csv.reader(csv_file, delimiter=';')