A structured, beginner-friendly Python course repository designed to take learners from core fundamentals to confident problem-solving through documented lessons, practice challenges, and mini projects.
This repository contains a complete, structured Python programming course built lesson by lesson. Every chapter has its own dedicated README, and every Python file is written as a study document with explanations, inline output comments, real-world use cases, practice challenges, and a mini project.
The course follows the curriculum of Data with Baraa and is documented here as a public learning archive. The goal is not just to store code, but to create a reference that any learner can follow from the very beginning to confident Python programming.
| Principle | Meaning |
|---|---|
| Learn progressively | Each chapter builds directly on the previous one |
| Practice actively | Every concept is reinforced with examples and challenges |
| Document clearly | Code is written to teach, not only to execute |
| Build confidence | Learners move from simple scripts to practical mini projects |
Chapter 1: Fundamentals
Output, variables, input, type conversion, data types
β
Chapter 2: Strings
Text manipulation, slicing, cleaning, search, validation
β
Chapter 3: Numbers
Arithmetic, rounding, random numbers, numeric validation
β
Chapter 4: Logic and Operators
Boolean logic, comparison, logical, membership, identity
β
Chapter 5: Conditional Statements
if, elif, else, nested conditions, match-case
β
Chapter 6: Loops
for, while, break, continue, pass, nested loops
β
Chapter 7: Data Structures
Lists, tuples, sets, dictionaries, comprehensions
β
Chapter 8: Functions
Parameters, return values, scope, clean function design
This order is intentional. Fundamentals come first because everything depends on them. Strings follow because most input is text. Numbers enable calculation. Logic enables decision-making. Conditionals apply that logic. Loops enable repetition. Data structures organize information. Functions make code reusable and clean.
| Chapter | Topic | Status | Key Concepts | README |
|---|---|---|---|---|
| 01 | Python Fundamentals | β Complete | print(), variables, input(), data types |
Open |
| 02 | Python Strings | β Complete | Methods, slicing, cleaning, search, validation | Open |
| 03 | Python Numbers | β Complete | Arithmetic, rounding, random, validation | Open |
| 04 | Logic and Operators | β Complete | Boolean, comparison, logical, membership, identity | Open |
| 05 | Conditional Statements | β Complete | if, elif, else, inline if, match-case |
Open |
| 06 | Loops | β Complete | for, while, break, continue, nested loops |
Open |
| 07 | Data Structures | β³ Upcoming | Lists, tuples, sets, dicts, comprehensions | Open |
| 08 | Functions | β³ Upcoming | Parameters, return, scope, clean functions | Open |
| Metric | Value |
|---|---|
| Total Chapters | 8 |
| Completed Chapters | 6 |
| Completed Python Files | 19 |
| Completed README Files | 7 |
| Current Chapter | Chapter 7 β Data Structures |
| Learning Status | Active |
| Started | April 2026 |
python-fundamentals-to-mastery/
β
βββ README.md β You are here
β
βββ 01_fundamentals/ β
Complete
β βββ README.md
β βββ 01_print_and_escape_sequences.py
β βββ 02_variables_and_storage.py
β βββ 03_input_and_type_conversion.py
β βββ 04_data_types_overview.py
β
βββ 02_strings/ β
Complete
β βββ README.md
β βββ 01_string_basics_and_transformations.py
β βββ 02_string_indexing_and_slicing.py
β βββ 03_string_search_and_validation.py
β
βββ 03_numbers/ β
Complete
β βββ README.md
β βββ 01_number_types_and_operations.py
β βββ 02_math_functions_and_validation.py
β
βββ 04_logic_and_operators/ β
Complete
β βββ README.md
β βββ 01_boolean_functions.py
β βββ 02_comparison_and_logical_operators.py
β βββ 03_membership_and_identity_operators.py
β
βββ 05_conditional_statements/ β
Complete
β βββ README.md
β βββ 01_if_else_elif.py
β βββ 02_nested_and_advanced_conditions.py
β βββ 03_inline_if_and_match_case.py
β
βββ 06_loops/ β
Complete
β βββ README.md
β βββ 01_for_loops.py
β βββ 02_break_continue_pass.py
β βββ 03_for_else_and_nested_loops.py
β βββ 04_while_loops.py
β
βββ 07_data_structures/ β³ Upcoming
β βββ README.md
β
βββ 08_functions/ β³ Upcoming
βββ README.md
- Start from Chapter 1 and follow the order.
- Open the chapter README before running any file.
- Run each Python file and read every comment.
- Modify examples to test your understanding.
- Complete the practice challenges on your own.
- Build the mini project without looking at the starter code.
- Complete the self-assessment checklist before moving forward.
- Open the chapter you want to revisit.
- Read the reference tables in the chapter README.
- Run selected lesson files to refresh your memory.
- Rebuild the mini project from memory.
- Browse chapter folders in order.
- Open each chapter README for an overview.
- Use the Python files as reference snippets.
Every .py file in this repository follows the same structure:
1. Header β Topic title and learning focus
2. Overview Table β Quick reference for all operations covered
3. Sections β Numbered concepts with definitions and examples
4. Output Comments β Every print() has its expected output
5. Use Cases β Real-world applications of each concept
6. Summary β Key takeaways and syntax reference
7. Daily Record β What was learned in that session
Every chapter README follows the same format for consistency:
1. Chapter title and badges
2. Chapter overview
3. Learning outcomes
4. Target learner table
5. Prerequisites
6. Learning path diagram
7. Chapter files table
8. Recommended study order
9. Lesson breakdown (key concepts + example + why it matters)
10. Core concepts summary table
11. Reference tables
12. Practice challenges (simple to complex)
13. Mini project (goal + requirements + starter code + expected output)
14. Common mistakes table
15. Professional tips
16. Self-assessment checklist
17. Completion criteria
18. Next chapter
19. Additional resources
20. Footer navigation
Each chapter includes one integrated mini project that combines all chapter concepts.
| Chapter | Mini Project | Skills Applied |
|---|---|---|
| 01 | Interactive Profile Card | input(), variables, type conversion, f-strings |
| 02 | Contact Data Cleaner | String cleaning, slicing, search, validation |
| 03 | Smart Invoice Calculator | Arithmetic, rounding, isinstance(), formatted output |
| 04 | User Validation Engine | Boolean logic, comparison, membership, identity |
| 05 | User Registration Validator | Conditionals, inline if, match-case, email and password validation |
| 06 | Automated Data Quality Report | For-else, nested loops, while loops, SQL query generation |
| 07 | Coming soon | Lists, dictionaries, comprehensions |
| 08 | Coming soon | Functions, parameters, return values |
Folders: {number}_{chapter_name}/
Files: {number}_{descriptive_name}.py
Examples:
06_loops/
01_for_loops.py
02_break_continue_pass.py
03_for_else_and_nested_loops.py
04_while_loops.py
Rules:
- Folders and files use lowercase with underscores (snake_case)
- Numbers are zero-padded:
01,02, not1,2 - Names are descriptive and reflect the content
- Every chapter folder contains a
README.md
By completing this course, you will be able to:
- Write clean, readable Python scripts from scratch
- Work with text data using string methods and validation
- Perform numeric calculations with correct precision
- Build decision-making logic using boolean and comparison operators
- Control program flow with conditionals and loops
- Organize data using Python's built-in collections
- Write reusable, well-structured functions
- Apply all concepts together in small practical projects
Read chapter README
β
Run the lesson file
β
Modify examples to test understanding
β
Write an example from memory
β
Solve the practice challenges
β
Build the mini project independently
β
Complete the self-assessment checklist
β
Move to the next chapter
| Tool | Purpose |
|---|---|
| Python 3.x | Programming language |
| VS Code / PyCharm | Code editor |
| Git | Version control |
| GitHub | Repository hosting |
| Markdown | Documentation format |
| Resource | Purpose |
|---|---|
| Python Official Docs | Language reference |
| Real Python | Practical tutorials |
| Data with Baraa | Course source |
| PEP 8 | Python style guide |
| LeetCode | Practice problems |
This repository is licensed under the MIT License. Free to use for educational purposes. Attribution appreciated.
- Instructor: Baraa β Data with Baraa
- AI Assistant: Claude (Anthropic) β Code formatting, structure, and README design
- Community: Python learners worldwide
Python Fundamentals to Mastery β Learning Python, One Chapter at a Time