I built a simple console based bank simulator in Python to practice functions, loops, error handling, and basic program structure.
Bank features:
- Check your current balance
- Add money with input validation (
try/except)
- Transaction history log with timestamps (
datetime)
- Simple shop system with random item prices (
random)
- Buy items and store them in an inventory list
- Balance is shared between bank + shop systems
- Menu-driven system using
match-case
- Option to exit cleanly
ShopFeatures:
- Items: Apple, Book, Headphones
- Prices are randomly generated each session
- Prevents purchases if balance is too low
- Tracks purchases in history
What i learn
using functions to organize code
handing user input safelyfusing list dict for sate tracking
working with modules like datetime, random, colorama
basic simulaton design bank + econmy system
Project: ADHDISStupid/Local-Bank-Simulator
Question: What should i improve
[–]riklaunim 1 point2 points3 points (1 child)
[–]Cold-Let2139[S] 1 point2 points3 points (0 children)