A collection of lightweight command-line applications developed in Python. This repository demonstrates core programming fundamentals, structured data management, error handling, and modular function design.
├── 01-expense-tracker/
│ └── expense.py
├── 02-grade-analyzer/
│ └── grade.py
├── 03-guessing-game/
│ └── guess.py
├── 04-inventory-system/
│ └── inventory.py
└── 05-cli-calculators/
├── menu.py
└── menu_list.py
| Project Directory | File | Description |
|---|---|---|
| 01-expense-tracker | expense.py |
Tracks spending across categories, compares expenses against user-defined budget limits, and generates financial summaries. |
| 02-grade-analyzer | grade.py |
Accepts student scores, calculates class averages, identifies highest/lowest marks, and maps scores to letter grades. |
| 03-guessing-game | guess.py |
Interactive CLI game utilizing the random module with proximity hints and attempt counters. |
| 04-inventory-system | inventory.py |
Manages stock items, accumulates category expenditure, and generates itemized reports. |
| 05-cli-calculators | menu.py / menu_list.py |
Command-line calculators for two-operand math (menu.py) and dynamic list-based operations (menu_list.py). |
- Data Structures: Utilization of dictionaries, nested lists, and set operations (
set()). - Error & Exception Handling: Input validation using
try-exceptblocks to handleValueErrorandZeroDivisionError. - Modular Program Design: Function separation (
main(), helper methods) and execution guards (if __name__ == "__main__":). - Built-in Modules: Use of standard modules like
randomandmath.
- Python 3.x installed on your system.
- Clone the repository:
git clone [https://github.com/YourUsername/repository-name.git](https://github.com/YourUsername/repository-name.git)
- Navigate into the specific project directory:
cd 01-expense-tracker
- Execute the script:
python expense.py