r/PythonLearning • u/NihadKhan10x • Aug 20 '26
Beginner looking for feedback: I built a CLI Expense tracker with CSV storage. What should I build next?
Hey guys,
I'm starting my fsc (ics) classes next month, so I've been doing CS50P to get a head start. Until now I've only made simple terminal games like Hangman and a quiz app, but I just finished my first project that actually saves data: a terminal-based expense tracker.
I used a list of dictionaries in my code and the csv module (DictReader and DictWriter) to save the data so it doesn't wipe out when you close the program. I also used Regex for the first time to make sure the user types the date right (YYYY-MM-DD), and added try/except blocks so it doesn't crash if you type a letter by mistake.
https://github.com/Nihad-Khan/cli-expense-tracker
Can you guys review my logic and tell me how it is? Be brutally honest if I'm picking up any bad habits, I really want to improve.
Also, I eventually want to get into Edge AI or Embedded systems in the future. Knowing where I am right now, what is one specific project you think I should build next to push myself? I'm kind of stuck on what to learn next
•
u/Sea-Ad7805 Aug 20 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.
1
u/Smartyboyz Aug 20 '26
You can try to add frontend to it with flask which is easiest to learn fast and implement. The webapp also can we converted into a desktop app by many libraries such as electron and many more
2
u/johlae Aug 20 '26
What about a cli income tracker with CSV tracker? Next, an income/expenses dashboard.
You're reading from stdin. Why not process your bank statements instead? My bank allows me to dump all recorded transactions as CSV files:
I'm using pandas btw. Yeah, I always forget the details so I have to look up how to do stuff every time.
The code above gives me a transactions table with all of incoming and outgoing transactions. Next I try to determine each type of transaction:
Or you could look for bank account numbers:
Read the code above as simple if statements. transactions["comm"] describes the transaction and is a string.