# Python & AI Study Plan (7 Weeks, 2 h per Weekday)
---
## Overview
This plan moves from Python fundamentals through data handling, classical machine-learning, deep-learning, NLP, recommender
Every weekday has about two hours of focused learning that blends short readings, hands-on coding, and a mini–exercise or proje
Key references are linked inline so you can open them instantly.
---
## Week 1 – Core Python & CS Fundamentals
### Day 1 – Python Syntax & Core Concepts
Re-read the basics in *Automate the Boring Stuff* (<https://automatetheboringstuff.com>).
Work interactively in the Python REPL, experimenting with variables, loops and functions.
Finish by writing a tiny script that greets a user, reinforcing input/output and string handling.
### Day 2 – Built-in Data Structures & Big-O Thinking
Review lists, tuples, dicts and sets in the official tutorial (<https://docs.python.org/3/tutorial/>).
Consult the Python Time-Complexity wiki (<https://wiki.python.org/moin/TimeComplexity>) to see which operations are O(1) or O(n
Time a membership test in a list versus a set to make complexity concrete.
### Day 3 – Writing *Pythonic* Code
Study comprehensions and lambdas with Real Python’s guide (<https://realpython.com/list-comprehension-python>).
Implement a simple generator that yields Fibonacci numbers to appreciate lazy evaluation.
Glance at PEP 8 (<https://peps.python.org/pep-0008>) and refactor yesterday’s script for style.
### Day 4 – Algorithms & Problem-Solving
Solve two easy problems on LeetCode or HackerRank to practise reasoning about data structures and complexity.
Implement a basic stack class from scratch and use it to check balanced parentheses.
### Day 5 – Mini-Project: Log-File Analyzer
Write a script that streams a log file line-by-line, counts each log level with `collections.Counter`, and prints the top five errors.
Optionally visualise counts with a quick `matplotlib` bar chart.
---
## Week 2 – Data Handling with NumPy & Pandas
### Day 1 – NumPy Basics
Follow the first chapter of *Python Data Science Handbook* (<https://jakevdp.github.io/PythonDataScienceHandbook/>).
Create arrays, slice them, and time a pure-Python loop versus a vectorised NumPy sum.
### Day 2 – Reshaping, Broadcasting & Basic Stats
Practise `reshape`, stacking, and broadcasting rules.
Compute rolling averages on a 1■000-point random series to simulate sensor smoothing.
### Day 3 – Pandas DataFrames
Work through **10 Minutes to pandas** (<https://pandas.pydata.org/docs/user_guide/10min.html>).
Load the Titanic CSV, inspect `df.info()`, filter rows, and add a derived column.
### Day 4 – Grouping, Joining & Time-Series
Group sales data by category and sum totals.
Join employee and salary tables on `employee_id`.
Generate a date index with `pd.date_range` and resample daily data to weekly means.
### Day 5 – EDA Project
Pick Titanic or MovieLens-small.
Clean, explore with `groupby` or `pivot_table`, and plot one key insight.
Write a short narrative summary of findings.
---