CreditBanking_CLI - by Ishan Samanta (CSE -AI & ROBOTICS // B.Tech// University Of Engineering and Management, Kolkata)SESSION : 2025-2029
This is A CLI based simple credit card manager based on Beginner to intermediate OOP fundamentals (Python). This code is written in python and is under rigorous development and new features will be updated regularly.
💡 Concepts Used
- Class definition and init() constructor
- Instance methods for deposit, charge/payment, balance check
- Infinite loop logic to keep the CLI running until explicitly exited
- User interaction through input() and branching using conditions
- Clean separation of logic using methods
The application runs in a loop, allowing the user to:
1.Deposit money
2.Make a payment
3.View current balance
4.View card summary
5.Exit the program
It uses simple console input/output to simulate real-world interactions. The loop only stops when the user chooses to exit (-1 or option 5), ensuring continuous usage like a true banking system.
A simple self made project which is under development and will continuously be updated. Thank you
----------------------------------------------------------------------------------------------------------------------------------
Feature | ❌ Before | ✅ After |
---|---|---|
PIN Verification | No PIN required for deposit or withdrawal | Required before deposit and withdrawal (access controlled) |
Private Data | self.pin was public |
__pin made private, accessed via property |
Logical Access Flow | Unchecked operations | PIN-based access gating implemented |
OOP Practices | Partial encapsulation | Proper encapsulation using properties and private members |