This repository contains a complete and structured Python learning roadmap — from basic concepts to advanced core topics — specially designed for Artificial Intelligence (AI) and Machine Learning (ML) learners.
The goal is to provide clear explanations, well-documented examples, and organized code files that help build a strong Python foundation before moving into AI/ML frameworks.
- Introduction to Python
- Print Function
- Comments in Python
- Escape Sequences
- Variables in Python
- Data Types in Python
- Type Conversion & Type Casting
- Input Function
- Operators in Python
- Control Statements
- Conditional Statements (
if,elif,else) - Loops (
for,while,nested loops)
- Lists
- Tuples
- Strings
- Dictionaries
- Sets
- Functions in Python
- Built-in Functions
- Built-in Modules in Python
- Custom Modules in Python
- File Handling in Python
- Exception Handling (optional to add later)
- Variables and Memory Reference
- Aliasing and Reference Counting
- Garbage Collection in Python
- Mutable vs Immutable Data Types
- Side Effects of Mutability
- Cloning Objects
- Concept of Recursion
- Base and Recursive Cases
- Factorial & Fibonacci Examples
- Nested and Indirect Recursion
- Tail Recursion
- Recursion vs Iteration Comparison
- Real-world Applications
By completing this repository, you will:
- Master Python fundamentals through practical examples.
- Understand how Python manages memory and data types.
- Learn to organize projects using modules and functions.
- Build a strong foundation for AI/ML, Data Science, and Automation.
- Be prepared to advance into OOP, NumPy, Pandas, and Machine Learning.
- Students revising Python for AI/ML
- Beginners starting their coding journey
- Learners preparing for internships, coding tests, or ML research
- Python 3.x
- VS Code / Jupyter Notebook / PyCharm
- GitHub for version control and learning documentation
Hamna Munir
AI/ML Engineer Enthusiast | Software Engineering Student
GitHub: Hamna-Munir
This repository is open-source and free for educational use.
You are welcome to learn, share, and build upon this work with proper credit.
- Clone the repository
git clone https://github.com/Hamna-Munir/Python-For-AI-ML.git