Learn
🤖 AI Hub 📰 News 📖 Dictionary 🧰 Resources
Grow
💼 Jobs 🚀 Community 🏆 Challenges
Explore by Stage
🌑 Zero 📚 Learn 🔧 Practice 🏗 Build 🚀 Launch 💰 Earn
Account
Login Sign Up
🏗️HTML 🎨CSS ⚡JavaScript 🐙Git & GitHub ⚛️React Soon 📘TypeScript Soon 🐍Python 🗄️Database & SQL Soon 🌐Web Development Soon ☁️Cloud & DevOps Soon 🤖AI & ML Soon 📄Resume Prep Soon 🎤Interview Prep Soon 💼Freelancing Soon 🚀SaaS & Side Projects Soon 🤖Automation Soon
🐍

Python

From Python basics to machine learning.

All (32) Beginner (14) Intermediate (10) Advanced (8)

🌱 Beginner 14 lessons

Start here. No experience needed.

Lesson 1
What Is Python and Why Learn It?
Find out what a programming language is, what Python is used for and why it is great for beginners, then run y...
Lesson 2
Installing Python and VS Code, and Running Your First File
Install Python and VS Code on Windows, Mac or Linux, check that they work, try the interactive shell and run y...
Lesson 3
Your First Program: print() and Comments
Write your first Python programs with print(): show text and numbers, control spacing with sep and end, use es...
Lesson 4
Variables and Data Types: Storing Information
Learn to store information in Python variables, name them with snake_case, change their values, and use the ma...
Lesson 5
Numbers and Math: Bills, Discounts and Percentages
Learn Python arithmetic, floor division, remainders, powers, rounding and the math module, then build a restau...
Lesson 6
Strings: Working with Text and f-strings
Learn to create, slice, clean and search text in Python with string methods, and build neat messages with f-st...
Lesson 7
Taking Input: input() and Type Conversion
Ask the user questions with input(), convert the answers with int(), float(), str() and bool(), avoid the clas...
Lesson 8
Conditions: if, elif and else
Teach your Python programs to make decisions with if, elif and else, comparison operators and and, or, not. Yo...
Lesson 9
Loops: for, while and range()
Repeat work with Python for and while loops, count with range(), add up totals and control loops with break an...
Lesson 10
Lists: Storing Many Items in Order
Store many values in one Python list, read them by index and slice, add and remove items, sort them and loop w...
Lesson 11
Tuples and Sets: Fixed Data and Unique Items
Store fixed data in Python tuples, unpack them into variables, and use sets to remove duplicates and compare g...
Lesson 12
Dictionaries: Storing Data with Keys
Store data as key-value pairs in Python dictionaries, read values safely with get(), loop with items() and cou...
Lesson 13
Functions: Reusable Blocks of Code
Write your own Python functions with def, pass arguments, return results, use default and keyword arguments an...
Lesson 14
Project: Build a Number Guessing Game
Build a complete number guessing game in Python step by step, with random numbers, hints, an attempt limit, in...

⚙️ Intermediate 10 lessons

You know the basics. Build real skills.

Lesson 15
More on Functions: *args, **kwargs, lambda and Scope
Write flexible Python functions with keyword arguments, *args, **kwargs and keyword-only parameters, sort data...
Lesson 16
Comprehensions: Lists, Dicts and Sets in One Line
Build new lists, dictionaries and sets in one readable line with Python comprehensions, filter with if, choose...
Lesson 17
Modules and Packages: import, the Standard Library and pip
Use import, from ... import and as, explore math, random, datetime, statistics and string, write your own modu...
Lesson 18
Working with Files: Reading and Writing Text
Read and write text files in Python with open() and with blocks, choose the right mode (r, w, a), loop over li...
Lesson 19
Error Handling: try, except, else and finally
Handle Python exceptions with try, except, else and finally, read a traceback, raise your own errors, create a...
Lesson 20
Dates and Time with the datetime Module
Create, compare and format dates and times with Python's datetime module. Count the days left for Diwali, read...
Lesson 21
JSON and CSV: Saving and Sharing Data
Save and share data with Python's json and csv modules. Read a marks spreadsheet, calculate averages and conve...
Lesson 22
Classes and Objects: Modelling Real Things
Learn object-oriented programming in Python with classes, objects, __init__, self and methods. Model train tic...
Lesson 23
Inheritance and Special Methods
Reuse code with inheritance and super(), override methods, and make your objects work with print, len, ==, sor...
Lesson 24
Regular Expressions in Python: Finding Patterns in Text
Use Python's re module to find, check and replace patterns in text. Validate PIN codes, mobile numbers, PAN an...

🚀 Advanced 8 lessons

Go deeper, write professional code and build projects.

Lesson 25
Iterators and Generators: Handling Data One Item at a Time
Learn how Python loops work inside, write your own generators with yield, save memory with generator expressio...
Lesson 26
Decorators: Adding Features to Functions
Learn how Python decorators wrap extra features around a function, like gift paper around a gift. Write your o...
Lesson 27
Virtual Environments and pip: Managing Project Libraries
Give every Python project its own shelf of libraries. Create and activate a virtual environment on Windows, Ma...
Lesson 28
Working with Web APIs: requests and JSON
Call web APIs from Python with the requests library: GET and POST, query parameters, status codes, timeouts an...
Lesson 29
Testing Your Code: assert, unittest and pytest
Check your Python code automatically, like a quality checker at a biscuit factory. Write testable functions, u...
Lesson 30
Project: Build a Student Marks Report Generator
Build a Python program that reads a class marks CSV and calculates totals, percentages, grades, ranks with tie...
Lesson 31
Project: Organise Messy Folders Automatically
Build a Python program that sorts a messy Downloads folder into Documents, Images, Videos, Archives, Code and ...
Lesson 32
Project: Build a Command-Line Expense Tracker
Build a menu-driven expense tracker in Python that validates amounts and dates, saves to JSON, shows monthly a...