I am trying to make a money counter whereby you can add money and remove money and just track where your money is going (this is just a mini project for me, I am aware there are much better apps suited for this).
I would like to present the current balance every time the program is run, my only problem is how I can read the last row in the csv file and the second column in it.
This is my csv file layout:
Date, Current Balance, Money In, Money Out, Reason, Other
10/04/1994, £205, £10, -, Birthday, -
My current code is:
with open("Logs.csv", "r") as f:
for row[-1] in f:
currentBalance = row[-1], row[-2]
def MainMenu():
print(f"{bnum1} Welcome to your Money Logger! {bnum1}\n\
{bnum2} 1. Money In {bnum2}\n\
{bnum2} 2. Money Out {bnum2}\n\
{bnum3} ")
I'm quite new to programming so i'm not really sure how to go about fetching a specific column and row. Any help would be much appreciated.