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.
Complete Python Intermediate Notes
Modules 6-10: functions, modules, files, exceptions and object-oriented programming. 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.
Python Quick Revision Notes
Key points and quick-revision bullets for 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 Interview Preparation Notes
Exam and interview points, FAQs and common mistakes from every chapter. Covers all 195 chapters.
Python Cheat Sheet
One syntax template and one revision line per chapter. Covers all 195 chapters.
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.
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.
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.
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.
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.
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.
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.
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.
Chapter 9 - Python Syntax
Learn the basic grammar rules of Python: statements, lines, case sensitivity, keywords, identifiers, quotes and how to split long lines.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.