Python
Part 1: Python Foundations 113 slides
Part 1 Cover & Roadmap
Meet Python & Your First Program
- Module 1: Meet Python & Your First Program
- Where Is This Used in Real Projects?
- What Is a Program? What Is Python?
- Python Is Short, Clear and Powerful
- Installing Python on Windows
- The Python Shell (IDLE): Talk to Python Directly
- Writing Scripts in VS Code (Recommended Editor)
- print(): Show Something on the Screen
- Printing Text, Numbers and Many Items
- sep and end: Change the Separator and the Line Ending
- Comments: Notes That Python Ignores
- How Python Runs Your Program: Top to Bottom
- Reading Error Messages: Python Tells You What Went Wrong
- Three Errors Every Beginner Meets
- Live Lab: Try It Yourself
- Coaching Centre Welcome Banner
- Bus Ticket: Ranchi to Jamshedpur
- Student ID Card with Tabs and New Lines
- Fix the Errors (Debugging Challenge)
- School Timetable Printout
- Module 1 Recap & Quiz
Variables, Data Types & Input
- Module 2: Variables, Data Types & Input
- Where Is This Used in Real Projects?
- A Variable Is a Named Box That Stores a Value
- Creating, Printing and Changing Variables
- Step Through: A Game Score Updating
- Rules for Naming Variables
- The 4 Basic Data Types
- input(): Let the User Type a Value
- input() Always Gives You a String
- int(), float() and str(): Change the Type
- Converting Between Types: What Works, What Breaks
- Multiple Assignment and Swapping Values
- Live Lab: Try It Yourself
- Student Profile Card
- How Old Will You Be?
- Rupee to Dollar Converter
- Tea Stall Bill
- Distance Unit Converter
- Module 2 Recap & Quiz
Operators & Expressions
- Module 3: Operators & Expressions
- Where Is This Used in Real Projects?
- The 7 Arithmetic Operators
- Floor Division and Remainder: Sharing Chocolates
- Precedence: Python Follows BODMAS
- Assignment Operators: += -= *= /=
- Comparison Operators Give True or False
- Logical Operators: and, or, not
- round(), abs(), max(), min() and pow()
- Live Lab: Try It Yourself
- GST Bill for a Mobile Shop
- Split the Restaurant Bill
- Seconds to Hours, Minutes and Seconds
- Pass or Fail with Booleans
- Simple Interest and EMI Calculator
- Module 3 Recap & Quiz
Strings & f-strings
- Module 4: Strings & f-strings
- Where Is This Used in Real Projects?
- Strings: Text in Quotes
- Every Character Has a Position (Index)
- Slicing: Cut Out Part of a String
- String Methods: Built-in Tools for Text
- split() and join(): Break Text Apart and Put It Together
- f-strings: The Best Way to Mix Text and Values
- f-string Alignment: Neat Tables and Bills
- Escape Characters and the in Operator
- Step Through: Cleaning a Messy Form Entry
- Live Lab: Try It Yourself
- Username Generator
- Mask a Mobile Number
- Word and Letter Counter
- Format an Invoice
- PAN Number Format Checker
- Module 4 Recap & Quiz
Decisions: if, elif, else & match
- Module 5: Decisions: if, elif, else & match
- Where Is This Used in Real Projects?
- if: Run Code Only When a Condition Is True
- if / else: Two Paths
- The elif Ladder: Many Choices, One Answer
- Step Through: The Grade Program with marks = 81
- Nested if: A Decision Inside a Decision
- Writing Good Conditions: Ranges, and / or, Truthy Values
- Conditional Expression (Ternary): if / else in One Line
- match-case: Choose by Matching a Value
- Top 5 Mistakes with if Statements
- Live Lab: Try It Yourself
- JAC Board Grade Calculator
- Electricity Bill with Slab Rates
- Login with Username and Password
- Bus Fare by Age and Distance
- Restaurant Menu with match-case
- Module 5 Recap & Quiz
Loops: for, while & range
- Module 6: Loops: for, while & range
- Where Is This Used in Real Projects?
- Without a Loop vs With a Loop
- range(): A Ready-Made List of Numbers
- Step Through: Adding Up Monthly Savings
- for Loops Work on Strings, Lists and More
- while: Repeat As Long As a Condition Is True
- break (Stop the Loop) and continue (Skip to Next)
- while True + break: The Menu Pattern Used in Real Apps
- Loops Inside Loops: Tables and Patterns
- Step Through: A 3 x 2 Seating Chart
- Live Lab: Try It Yourself
- Multiplication Table Printer
- Number Guessing Game
- ATM PIN with 3 Attempts
- Star Patterns: Pyramid and Diamond
- Savings Goal Tracker
- Module 6 Recap & Quiz
Part 1 Complete
Part 2: Data Structures & Functions 86 slides
Part 2 Cover & Roadmap
Lists: Store Many Values
- Module 7: Lists: Store Many Values
- Where Is This Used in Real Projects?
- A List Holds Many Values in Order
- Lists Are Mutable: Change Any Item
- Adding and Removing Items (Click to Animate)
- Sorting, Searching and Counting
- Looping Over a List: Totals, Averages and Filters
- Step Through: Finding the Topper Without max()
- Lists of Lists: Tables, Grids and Seating Charts
- Copying Lists: b = a Does NOT Make a Copy
- Live Lab: Try It Yourself
- Class Marks Analyser
- Shopping Cart with a Menu
- To-Do List Manager
- Top 3 Scorers (Two Lists Together)
- Exam Hall Seating Chart (2D List)
- Module 7 Recap & Quiz
Tuples & Sets
- Module 8: Tuples & Sets
- Where Is This Used in Real Projects?
- Tuples: Like a List, But It Cannot Change
- Packing and Unpacking: Open a Tuple Into Variables
- When to Use a Tuple vs a List
- Sets: Unique Items Only, No Order
- Set Operations: The Venn Diagram in Python
- Sets in Action: Who Has Not Submitted?
- Live Lab: Try It Yourself
- GPS Coordinates of Jharkhand Cities
- Unique Visitor Counter
- Mutual Friends Finder
- Compare Subjects of Two Students
- Lucky Draw with Unique Entries
- Module 8 Recap & Quiz
Dictionaries: Key-Value Data
- Module 9: Dictionaries: Key-Value Data
- Where Is This Used in Real Projects?
- A Dictionary Maps Keys to Values
- Creating a Dictionary and Reading Values
- Add, Update and Delete (Click to Animate)
- Looping Through a Dictionary
- Step Through: Counting Votes with a Dictionary
- Nested Data: A List of Dictionaries (Like a Table)
- Nested Dictionaries and Useful Methods
- Live Lab: Try It Yourself
- Phone Book Search
- Price List and Bill
- Word Frequency Counter
- Student Report Card (Nested Dict)
- Jharkhand District Info Lookup
- Module 9 Recap & Quiz
Functions: Reusable Blocks of Code
- Module 10: Functions: Reusable Blocks of Code
- Where Is This Used in Real Projects?
- A Function Is a Machine: Inputs In, Answer Out
- Defining and Calling a Function
- return: Send a Value Back to the Caller
- Step Through: What Happens When You Call a Function
- Default Values and Keyword Arguments
- *args and **kwargs
- Local vs Global Variables
- lambda (One-Line Functions) and Docstrings
- A Function That Calls Itself: Recursion
- Live Lab: Try It Yourself
- Reusable GST Function
- Area Calculator Toolkit
- Password Strength Checker
- EMI Planner with Default Arguments
- Recursion: Factorial and Digit Sum
- Module 10 Recap & Quiz
Modules, Packages & pip
- Module 11: Modules, Packages & pip
- Where Is This Used in Real Projects?
- Modules: Toolboxes You Can Import
- Three Ways to Import
- The math Module: Maths Beyond + - * /
- The random Module: Games, OTPs and Lucky Draws
- The datetime Module: Dates, Times and Differences
- Make Your Own Module (and Import It)
- pip: Install Packages from the Internet
- Using an Installed Package: tabulate
- Live Lab: Try It Yourself
- OTP Generator
- Dice Game: First to 20
- Age and Next Birthday Calculator
- Your Own Module: school_utils.py
- Pretty Report with a pip Package
- Module 11 Recap & Quiz
Part 2 Complete
Part 3: Files, Errors & OOP 87 slides
Part 3 Cover & Roadmap
Files: Text, CSV & JSON
- Module 12: Files: Text, CSV & JSON
- Where Is This Used in Real Projects?
- Variables Forget, Files Remember
- Writing a Text File
- Reading a Text File: All at Once or Line by Line
- Append Mode: Add Without Erasing (A Simple Log)
- File Paths: Where Is My File?
- CSV Files: Tables That Open in Excel
- Reading CSV with DictReader: Each Row Becomes a Dict
- JSON Files: Save Dictionaries and Lists
- Live Lab: Try It Yourself
- Daily Diary App
- Attendance Register in CSV
- Marks CSV Report Card
- App Settings in JSON
- Contact Book That Remembers
- Module 12 Recap & Quiz
Errors, Exceptions & Debugging
- Module 13: Errors, Exceptions & Debugging
- Where Is This Used in Real Projects?
- Common Exceptions You Will Meet
- try / except: Catch the Error, Keep Running
- try / except / else / finally
- Catch Several Errors and Read the Message with "as e"
- raise: Create Your Own Error When Data Is Wrong
- Custom Exceptions for Your App
- Keep Asking Until the Input Is Valid
- Reading a Traceback Through Functions
- Live Lab: Try It Yourself
- Safe Number Input Function
- Calculator That Never Crashes
- Load a File with a Fallback
- Bank Withdrawal with Custom Errors
- Validate a Batch of Marks Records
- Module 13 Recap & Quiz
Classes & Objects (OOP Part 1)
- Module 14: Classes & Objects (OOP Part 1)
- Where Is This Used in Real Projects?
- A Class Is a Blueprint; Objects Are Built From It
- Writing Your First Class
- Step Through: Creating Two Bank Accounts
- Methods That Change and Check Object Data
- __str__ and __repr__: Make Objects Print Nicely
- Class Attributes vs Instance Attributes
- Lists of Objects: Sort, Filter and Report
- Live Lab: Try It Yourself
- Student Class with Report Card
- BankAccount with Mini Statement
- Product and Cart Classes
- Mobile Phone Battery Simulator
- Library Book Issue System
- Module 14 Recap & Quiz
Inheritance, Polymorphism & Magic Methods
- Module 15: Inheritance, Polymorphism & Magic Methods
- Where Is This Used in Real Projects?
- Inheritance: "Is-A" Relationships
- Child Classes with super()
- Step Through: Which Method Runs?
- Polymorphism: One Interface, Many Forms
- Protecting Data: _private Names and @property
- Dunder (Magic) Methods: Make Objects Work with + == < len()
- Abstract Base Classes: Force Children to Implement Methods
- Live Lab: Try It Yourself
- Employee and Manager Payroll
- Ride Fare Calculator
- Shapes and a Paint Estimate
- Money Class with Operators
- Payment Methods with an Abstract Class
- Module 15 Recap & Quiz
Pythonic Python: Comprehensions, Generators & Decorators
- Module 16: Pythonic Python: Comprehensions, Generators & Decorators
- Where Is This Used in Real Projects?
- List Comprehensions: Build a List in One Line
- Dict and Set Comprehensions, and Nested Ones
- map, filter, zip, enumerate, any and all
- sorted(), min() and max() with a key Function
- Iterators: How a for Loop Really Works
- Generators: Functions That yield Values One at a Time
- Generators Save Memory: Reading a Big Log File
- Decorators: Wrap a Function to Add a Feature
- Decorators in Real Apps: Login Checks and Caching
- Live Lab: Try It Yourself
- Marks Filtering with Comprehensions
- Inter-School Quiz Leaderboard
- Log File Analyser with a Generator
- A @timer Decorator for Slow Code
- login_required and role_required Decorators
- Module 16 Recap & Quiz
Part 3 Complete
Part 4: Advanced Python & Data 67 slides
Part 4 Cover & Roadmap
Standard Library Power Tools
- Module 17: Standard Library Power Tools
- Where Is This Used in Real Projects?
- datetime: Parse, Format and Calculate with Dates
- pathlib: List, Create and Inspect Files and Folders
- shutil: Copy, Move and Back Up
- collections: Counter, defaultdict, namedtuple, deque
- Regular Expressions: Find Patterns in Text
- Using re in Python: search, findall, fullmatch, sub
- Live Lab: Try It Yourself
- Fee Due-Date Reminder
- Downloads Folder Organiser
- School Captain Election Counter
- Admission Form Validator with Regex
- Server Log Summary
- Module 17 Recap & Quiz
Databases with SQLite
- Module 18: Databases with SQLite
- Where Is This Used in Real Projects?
- A Database Table Is Like a Smart Spreadsheet
- SQL in 5 Commands (CRUD)
- Python + SQLite: Connect, Create, Insert, Commit
- Always Use ? Placeholders (Avoid SQL Injection)
- SELECT with WHERE, ORDER BY, LIMIT and LIKE
- Aggregates and GROUP BY: Reports from Data
- JOIN: Combine Two Related Tables
- Live Lab: Try It Yourself
- Student Database with Functions
- Library Database: Books and Issues
- Shop Inventory with Low-Stock Alerts
- Search Contacts with LIKE
- Monthly Sales Report (GROUP BY + JOIN)
- Module 18 Recap & Quiz
Data Analysis: NumPy, Pandas & Matplotlib
- Module 19: Data Analysis: NumPy, Pandas & Matplotlib
- Where Is This Used in Real Projects?
- NumPy Arrays: Maths on Whole Lists at Once
- Pandas DataFrame: A Table in Python
- Selecting, Filtering and Sorting Rows
- New Columns, groupby and Summaries
- Cleaning Messy Data: Spaces, Case, Blanks, Duplicates, Types
- Matplotlib: Line and Bar Charts
- Plot Directly from a DataFrame and Export to Excel
- Live Lab: Try It Yourself
- Class Result Analysis
- Rainfall Trend Chart
- Mobile Shop Sales Dashboard
- Clean an Admission Sheet
- Family Expense Pie Chart
- Module 19 Recap & Quiz
APIs, the Web & Flask
- Module 20: APIs, the Web & Flask
- Where Is This Used in Real Projects?
- Request and Response: The Language of the Web
- Calling a JSON API with requests
- Handling Status Codes, Timeouts and Bad Data
- Reading Web Pages with BeautifulSoup
- Your First Website with Flask
- Templates: Fill HTML with Python Data (Jinja2)
- Handling Forms: GET Shows the Form, POST Receives Data
- Build a JSON API with Flask
- Live Lab: Try It Yourself
- Weather Report for Jharkhand Cities
- Currency Converter Using a Rates API
- Coaching Centre Website
- Student Search Page (Query String + Template)
- To-Do JSON API (GET, POST, PATCH)
- Module 20 Recap & Quiz
Part 4 Complete
Part 5: Pro Skills & Capstone Projects 50 slides
Part 5 Cover & Roadmap
GUI Apps with Tkinter & Office Automation
- Module 21: GUI Apps with Tkinter & Office Automation
- Where Are GUIs and Automation Used?
- Your First Tkinter Window
- Common Widgets and Layout Managers
- Read Inputs, Calculate, Show the Result
- Automating Excel with openpyxl
- Generate Certificates Automatically with Pillow
- Rename Hundreds of Files in One Go
- PDF Reports and Emails (Code to Run on Your Computer)
- Live Lab: Try It Yourself
- Tip Calculator Window
- Login Window with 3 Attempts
- Stopwatch App with after()
- Certificates for a Whole Batch
- Photo Renamer + Excel Log
- Module 21 Recap & Quiz
Professional Python: Tools & Habits
- Module 22: Professional Python: Tools & Habits
- Where Is This Used in Real Projects?
- venv: A Separate Box of Packages for Each Project
- Project Structure and PEP 8 Style
- Type Hints: Say What Types a Function Expects
- Catch Bugs Before Running: mypy
- logging: Better Than print for Real Apps
- Automated Tests with pytest
- Git: Save Versions and Share Your Code
- Live Lab: Try It Yourself
- Typed and Documented Utility Module
- Write pytest Tests for a Calculator
- Logging in a Bank App
- Refactor Messy Code
- Scaffold a Project Folder
- Module 22 Recap & Quiz
Capstone Projects
- Module 23: Capstone Projects
- Five Projects for Your Portfolio
- Project 1: Student Result Management System
- Result Management System (full code)
- Project 2: Expense Tracker with Charts
- Expense Tracker (full code)
- Project 3: Quiz Game with High Scores
- Quiz Game (full code)
- Project 4: Library Management System
- Library Management (full code)
- Project 5: Jharkhand Weather Dashboard (API + Flask)
- Weather Dashboard (full code)
- Where Python Can Take You
- Congratulations, Python Programmer!
- Module 23 Recap & Quiz