This repository contains beginner-friendly Python programs covering the fundamentals of programming. It is designed as a clear, practical, and well-structured reference for anyone starting their Python journey.
The examples focus on core concepts through simple, readable scripts that emphasize clarity, correctness, and good coding practices.
- Variables and data types
- Input and output handling
- Conditional statements (
if,elif,else) - Loops (
for,while) - Functions and parameters
- Python data structures (lists, tuples, sets, dictionaries)
- Error and exception handling
- Modules and imports
- Regular expressions (basic to intermediate usage)
python_basics/
│
├── variables.py # Python variable types and assignments
├── input_output.py # User input and output examples
├── conditions.py # Conditional logic examples
├── loops.py # for-loop and while-loop examples
├── functions.py # Function definitions and usage
├── data_structures.py # Lists, tuples, sets, and dictionaries
├── handling_errors.py # Exception handling with try/except
├── modules_and_imports.py # Importing and using Python modules
├── regular_expressions.py # Regex examples and patterns
├── python_regex_reference.txt # Quick reference for regex patterns
│
├── README.md
└── LICENSE
- Build a strong foundation in Python programming
- Practice core programming logic in a structured way
- Serve as a reference for common Python syntax and patterns
- Prepare for more advanced topics such as problem solving, web data, and APIs
- This repository contains only original code written for learning purposes
- No copyrighted course material or assignment text is included
- Scripts are intentionally kept simple and beginner-friendly
After completing these basics, related repositories expand on:
- Python problem solving and algorithms
- Web data access (APIs, JSON, XML, web scraping)
- Real-world Python applications
⭐ Feel free to explore, fork, or use these examples as a learning reference.