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