Learn Python from zero to advanced

A structured course with chapter notes, downloadable PDFs, practice questions, quizzes and projects. Read freely, or create a free account to track your progress.

Start Learning Try practice questions

195Chapters
3,807Practice questions
214Quizzes
30Projects
202PDF notes
1Learners

Choose your learning path

Beginner path

Start here: setup, syntax, operators, strings, data structures and control flow.

Beginner 70 chapters live

Intermediate path

Functions, modules, files, exceptions and object-oriented programming.

Intermediate 65 chapters live

Advanced path

Generators, decorators, databases, APIs, testing and real applications.

Advanced 60 chapters live

Complete syllabus

Module 1: Python Fundamentals

20 chapters available

Beginner

Module 2: Operators and Expressions

9 chapters available

Beginner

Module 3: Python Strings

10 chapters available

Beginner

Module 4: Python Data Structures

16 chapters available

Beginner

Module 5: Control Flow

15 chapters available

Beginner

Module 6: Python Functions

16 chapters available

Intermediate

Module 7: Python Modules and Packages

9 chapters available

Intermediate

Module 8: File Handling

12 chapters available

Intermediate

Module 9: Exception Handling

9 chapters available

Intermediate

Module 10: Object-Oriented Programming

19 chapters available

Intermediate

Module 11: Advanced Python

19 chapters available

Advanced

Module 12: Python Database and APIs

12 chapters available

Advanced

Module 13: Python Testing and Debugging

9 chapters available

Advanced

Module 14: Advanced Application Development

11 chapters available

Advanced

Featured tutorials

1. Introduction to Python

Learn what Python is, why so many beginners and professionals choose it, how a Python program runs, and how to write and run your first lines of code.

Beginner20 min

2. History and Features of Python

Follow the story of Python from its beginning with Guido van Rossum to Python 3 today, and learn the main features that make the language popular.

Beginner20 min

4. Installing Python on Windows

Learn how to download Python from the official site, run the Windows installer safely, tick the PATH option, and check that the installation works from Command Prompt.

Beginner20 min

5. Installing Python on Linux and macOS

Check whether Python is already on your Linux or macOS computer, install a current version with the right tool, and learn the difference between python3 and python.

Beginner20 min

19. Print Function

Explore everything the print() function can do: several values, sep and end, escape characters, printing to other streams, and handy f-string tricks for debugging.

Beginner25 min

22. Comparison Operators

Learn the six comparison operators, how Python compares numbers, strings and sequences, how chained comparisons work, and the difference between == and is.

Beginner25 min

Popular practice questions

Print a greeting

Introduction to Python

BeginnerCoding

Add two numbers

Introduction to Python

BeginnerCoding

Store and print your name

Introduction to Python

BeginnerCoding

Area of a rectangle

Introduction to Python

BeginnerCoding

Quotient and remainder

Introduction to Python

IntermediateCoding

Check the type

Introduction to Python

BeginnerCoding

Featured quizzes

Beginner Level Assessment

A complete beginner-level assessment covering modules 1-5.

60 minLevel

Intermediate Level Assessment

A complete intermediate-level assessment covering modules 6-10.

60 minLevel

Advanced Level Assessment

A complete advanced-level assessment covering modules 11-15.

60 minLevel

Comprehensive Python Final Assessment

A mixed assessment across the whole Python course.

90 minFinal

Quiz: Introduction to Python

Test yourself on "Introduction to Python".

20 minChapter

Quiz: History and Features of Python

Test yourself on "History and Features of Python".

20 minChapter

Latest projects

Data Analysis Report Tool

Write a sample sales CSV, load and clean it, then print a full statistics report with the statistics module: summary values, group tables, histogram, outliers, correlation and regression.

Advanced

Static Site Generator

Build a tiny static site generator: it parses pages with header fields, converts mini Markdown to HTML, fills a template with navigation, writes a site folder and checks links.

Advanced

Rule-Based Chatbot

Build a chatbot that answers with regular-expression rules, remembers facts such as your name, does safe arithmetic, reflects pronouns, and saves the chat to a log file.

Advanced

Task Scheduler Simulator

Simulate how an operating system schedules tasks. Compare FCFS, SJF, SRTF, Priority and Round Robin with Gantt charts and waiting and turnaround statistics.

Advanced

Markdown to HTML Converter

Build a small Markdown converter from scratch. It handles headings, lists, block quotes, code blocks, links, images and inline styles, and writes a full HTML page.

Advanced

Duplicate File Finder

Find files with identical content using a fast three-stage filter (size, first 4 KB, full SHA-256) and move the extra copies to a trash folder.

Advanced

Latest PDF notes

Python Cheat Sheet

One syntax template and one revision line per chapter. Covers all 195 chapters.

Python Interview Preparation Notes

Exam and interview points, FAQs and common mistakes from every chapter. Covers all 195 chapters.

Python Important Syntax and Functions

Syntax templates and key points collected from every chapter. Covers all 195 chapters.

Python Quick Revision Notes

Key points and quick-revision bullets for every chapter. Covers all 195 chapters.

Complete Python Advanced Notes

Modules 11-15: advanced Python, databases and APIs, testing, applications and career preparation. Covers all 195 chapters.

Complete Python Intermediate Notes

Modules 6-10: functions, modules, files, exceptions and object-oriented programming. Covers all 195 chapters.

Frequently asked questions

Is this course free?

Yes. All tutorials, notes, practice questions, quizzes and projects can be used without paying. Registration is optional and only needed to save your progress.

Do I need any programming experience?

No. The course starts from installing Python and writing your first program, and each chapter is marked beginner, intermediate or advanced.

Can I run Python code on this website?

No. We do not run code on the server. Install Python on your own computer (Chapter 4 and 5 show how) and try every example yourself.

Are the PDF notes free?

Yes. Every chapter has its own PDF note, and there are complete beginner, intermediate and advanced note books.