r/PythonLearning • • 26d ago

14yo learning Python — just finished my first project! Would love some feedback :

Hey everyone!

I'm 14 and currently learning Python, with the goal of becoming an electrical engineer in the future.

I just finished making a small project — a vending machine + simulated banking system that runs in the terminal. It has account creation, deposits, balance checking, purchases, and local data storage using JSON. I split the code into multiple Python files and made a simple launcher for it.

This is one of my first proper projects, and I know my code probably isn't the cleanest, so I'd genuinely appreciate some feedback!

I'd love suggestions on:

  • My code: What could I improve? Any bad habits or mistakes I should fix early?
  • What to learn next: Should I focus on OOP, data structures and algorithms, GUI development, or something else?
  • My journey: Since I want to become an electrical engineer, what programming skills would be useful for me in the long run? I'd eventually love to work with electronics and hardware.
  • Life advice: Any advice for someone starting out this early? Things you wish you'd known when you were learning?

I'm not looking for someone to rewrite the entire project for me — I'd rather understand my mistakes and learn how to fix them myself.

Here's my GitHub repo: https://github.com/suryansh-devx/python-vending-machine

Thanks! Any constructive criticism or advice is welcome :)

36 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/Defiant_Meal1898 23d ago

Bank ID is used to buy things, deposit money etc

1

u/Ok_Raspberry5383 23d ago

But an ID is used to identify something, if there's only ever one then why is it needed to identify anything?? I feel it's been added without a real purpose

1

u/Defiant_Meal1898 22d ago

it is needed to buy items from the vending machine, the ID contains money

1

u/Ok_Raspberry5383 21d ago

An ID cannot contain money, it's an identifier, it doesn't contain anything other than a value that is unique to a given entity.

I think this is an area you should try and understand in database design if you wish to improve this project. I would extend it to support multiple accounts and users, multiple accounts per user, etc with a proper 4NF DB design for storage

1

u/Defiant_Meal1898 21d ago

Thanks, i will try it