Skip to content

About

This course is perfect for data analysts, data engineers, data scientists, ai engineering, developers, and students - covering everything from Python fundamentals to advanced real-world applications.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

9 Commits

Folders and files

Repository files navigation

Python Fundamentals to Mastery

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.

Python 3.x Status: In Progress Level: Beginner to Intermediate Chapters: 8 License: MIT


πŸ“– About This Course Repository

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.


🧠 Learning Philosophy

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

πŸ—ΊοΈ Course Roadmap

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.


πŸ“š Course Content

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

πŸ“Š Progress Dashboard

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

πŸ—‚οΈ Repository Structure

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

πŸš€ How to Use This Repository

For Learners

  1. Start from Chapter 1 and follow the order.
  2. Open the chapter README before running any file.
  3. Run each Python file and read every comment.
  4. Modify examples to test your understanding.
  5. Complete the practice challenges on your own.
  6. Build the mini project without looking at the starter code.
  7. Complete the self-assessment checklist before moving forward.

For Review

  1. Open the chapter you want to revisit.
  2. Read the reference tables in the chapter README.
  3. Run selected lesson files to refresh your memory.
  4. Rebuild the mini project from memory.

For GitHub Visitors

  1. Browse chapter folders in order.
  2. Open each chapter README for an overview.
  3. Use the Python files as reference snippets.

πŸ“ Python File Structure

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

πŸ“‹ Chapter README Standard

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

πŸ—οΈ Mini Projects

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

🏷️ Naming Convention

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, not 1, 2
  • Names are descriptive and reflect the content
  • Every chapter folder contains a README.md

🎯 What You Will Learn

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

πŸ”„ Recommended Study Workflow

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

πŸ› οΈ Tools and Environment

Tool Purpose
Python 3.x Programming language
VS Code / PyCharm Code editor
Git Version control
GitHub Repository hosting
Markdown Documentation format

πŸ“š Additional Resources

Resource Purpose
Python Official Docs Language reference
Real Python Practical tutorials
Data with Baraa Course source
PEP 8 Python style guide
LeetCode Practice problems

πŸ“œ License

This repository is licensed under the MIT License. Free to use for educational purposes. Attribution appreciated.


⭐ Acknowledgments

  • 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

Made with Python

About

This course is perfect for data analysts, data engineers, data scientists, ai engineering, developers, and students - covering everything from Python fundamentals to advanced real-world applications.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages