This repository contains foundational Python code I wrote while practicing the basicsโstarting from beginner-level syntax up through defining functions and handling errors. It's all compiled into a single file (practice.py) that walks through key elements of the language as I built my understanding.
The file includes progressive examples of:
- ๐ค Variable declarations and string manipulation
- ๐ Loops (
for,while) and control structures - ๐ง Conditional logic (
if,elif,else) - ๐งฉ Functions with parameters and return values
- ๐ Exception handling using
try,except,finally - ๐ฏ Mini-games and interactive examples (e.g., guessing game)
- ๐ฅ User input and basic I/O operations
In your terminal:
python main.py