Python PDF Notes

Free downloadable notes for offline study. Every PDF contains definitions, syntax, examples with output, common mistakes and a quick revision list.

Complete Python Beginner Notes

Modules 1-5: fundamentals, operators, strings, data structures and control flow. Covers all 195 chapters.

891 KB369 pages2 downloadsDownload PDF

Complete Python Intermediate Notes

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

811 KB340 pages2 downloadsDownload PDF

Complete Python Advanced Notes

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

838 KB351 pages2 downloadsDownload PDF

Python Quick Revision Notes

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

317 KB95 pages2 downloadsDownload PDF

Python Important Syntax and Functions

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

257 KB59 pages2 downloadsDownload PDF

Python Interview Preparation Notes

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

448 KB131 pages2 downloadsDownload PDF

Python Cheat Sheet

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

96 KB22 pages2 downloadsDownload PDF

Chapter 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.

74 KB6 pages1 downloadsDownload PDF

Chapter 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.

74 KB6 pages1 downloadsDownload PDF

Chapter 3 - Applications of Python

Discover where Python is used in the real world, from websites and data science to automation, games and science, with tiny examples you can run.

74 KB6 pages1 downloadsDownload PDF

Chapter 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.

74 KB6 pages1 downloadsDownload PDF

Chapter 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.

72 KB5 pages1 downloadsDownload PDF

Chapter 6 - Installing and Using VS Code

Install Visual Studio Code, add the Python extension, pick an interpreter, and learn to write, run and debug a Python file inside the editor.

73 KB5 pages1 downloadsDownload PDF

Chapter 7 - Python Interpreter and IDE

Learn what the Python interpreter does with your code, how to use the interactive prompt and run script files, and how to choose an IDE or editor for comfortable coding.

75 KB6 pages1 downloadsDownload PDF

Chapter 8 - Writing Your First Python Program

Write, save and run your first complete Python program. Learn how print, input and variables work together and how to read your first error messages.

73 KB5 pages1 downloadsDownload PDF

Chapter 9 - Python Syntax

Learn the basic grammar rules of Python: statements, lines, case sensitivity, keywords, identifiers, quotes and how to split long lines.

73 KB6 pages1 downloadsDownload PDF

Chapter 10 - Python Comments

Learn how to write single-line, inline and multi-line comments and docstrings in Python, and how to use comments to make code easier to understand.

71 KB5 pages1 downloadsDownload PDF

Chapter 11 - Python Indentation

Learn how Python uses indentation to group statements into blocks, how many spaces to use, and how to avoid the common IndentationError and TabError problems.

73 KB6 pages1 downloadsDownload PDF

Chapter 12 - Python Keywords and Identifiers

Learn what keywords are, which words Python reserves, and the rules and style conventions for naming variables, functions and classes with identifiers.

75 KB6 pages1 downloadsDownload PDF

Chapter 13 - Python Variables

Learn what a variable is in Python, how to create one with assignment, how to name it well, and how Python handles reassignment, multiple assignment and deleting names.

75 KB6 pages1 downloadsDownload PDF

Chapter 14 - Constants

Learn how Python handles values that should not change: the UPPER_CASE naming convention, Final hints, immutable types, enums and frozen dataclasses.

74 KB6 pages1 downloadsDownload PDF

Chapter 15 - Python Data Types

Meet the built-in data types of Python: int, float, complex, str, bool, list, tuple, set, dict and None, and learn how to check a type and tell mutable from immutable.

72 KB5 pages1 downloadsDownload PDF

Chapter 16 - Type Checking

Learn how to find out what type a value has with type() and isinstance(), how to check several types at once, and how to write code that stays safe when the type is not what you expected.

74 KB6 pages1 downloadsDownload PDF

Chapter 17 - Type Conversion

Learn how to change a value from one type to another with int(), float(), str(), bool() and friends, and how Python converts some values for you automatically.

73 KB6 pages1 downloadsDownload PDF

Chapter 18 - Input and Output

Learn how programs talk to people: reading text with input(), converting it, and showing results with print() and formatted strings.

71 KB5 pages1 downloadsDownload PDF

Chapter 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.

71 KB5 pages1 downloadsDownload PDF

Chapter 20 - Basic Error Understanding

Learn to read a Python traceback, tell syntax, runtime and logic errors apart, recognise common error names, and handle errors safely with try and except.

74 KB6 pages1 downloadsDownload PDF

Chapter 21 - Arithmetic Operators

Learn the seven arithmetic operators, how floor division and modulus work, the order in which Python evaluates operators, and the shortcut assignment forms.

72 KB5 pages1 downloadsDownload PDF

Chapter 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.

71 KB5 pages1 downloadsDownload PDF

Chapter 23 - Assignment Operators

Learn how the = operator stores values and how augmented assignment operators such as +=, -=, *= and //= update a variable in a short, readable way.

73 KB6 pages1 downloadsDownload PDF