Expense

Develop a python program that reads the information of credit card transactions from a file and calculates the total amount of payments made. Then, adds the following sentence to the end of that file:
Total amount spent: $total calculated amount. For example:
“Total amount spent: $2398.78.The format of the file is as follows:
date, company, amount
12/6/2020 , Apple , MacBook Air, $1200.54
20/6/2020, Best Buy, Optical Mouse, $45.37

×
New Download