#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Python Notes PDF: Basics to Advanced

Free Python notes PDF from basics to advanced: data types, strings, collections, loops, functions, files, OOP, errors, generators, decorators and projects.

9 pages · 133 KB · PDF · Updated 5 Nov 2026

Prepared by: Uncodemy trainer team  ·  Reviewed by: Uncodemy  ·  Last reviewed: 5 Nov 2026

Quick Answer

Uncodemy's Python notes PDF takes you from basics to advanced in 9 handwritten-style pages: variables and data types, operators, strings, lists, tuples, sets and dicts, conditions and loops, functions, modules and files, OOP, error handling, and advanced topics such as generators, decorators, type hints, dataclasses and async. It ends with seven practice projects and eight interview-style questions, and is free to download after a short form.

Key takeaways

  • Covers the full beginner path in 9 pages, with a short runnable example for every topic.
  • Uses quick tables for data types, list versus tuple versus set versus dict, string methods and common errors with their causes.
  • Goes past the basics into generators, decorators, context managers, type hints, dataclasses, virtual environments, async and the GIL.
  • Ends with seven practice projects, a common mistakes table and eight practice questions for interviews.

About these Python notes

Python is an easy-to-read, general purpose language used for web apps, data analysis, AI, automation and scripting. It is interpreted and dynamically typed, and uses indentation instead of braces, which is why it is often the first language people learn. These notes are written for self-study and job preparation rather than a university exam: each topic is a few short points, a table and a small example you can run, so you can learn or revise Python quickly and then practise with the projects at the end.

Please note: these are original Uncodemy study notes written in a handwritten style. They are not official documentation of the Python Software Foundation. Tools and versions change, so check the official docs linked below when something behaves differently on your machine.

What's inside the Python notes

The PDF has 12 numbered sections across 9 pages. Here is what each one covers.

Start with Python

What Python is, interpreted and dynamically typed explained simply, how to run a file, your first program and a table of popular libraries for web, data, AI and ML, and automation.

Variables and data types

Naming rules, a table of int, float, str, bool, list, tuple, set, dict and None, checking types, type conversion, input() and mutable versus immutable types.

Operators

Arithmetic, comparison, logical, assignment, membership and identity operators, the three kinds of division, and == versus is.

Strings

Indexing and slicing, negative indexes, the most used string methods and f-strings.

Lists, tuples, sets, dicts

A table comparing order, changeability and duplicates, list and set examples, looping over a dictionary, and list comprehensions.

Conditions and loops

if, elif and else, for and while loops with range, break, continue and pass, and match-case from Python 3.10.

Functions

def and return, default parameters, *args and **kwargs, lambda, local and global scope, and the mutable default argument trap.

Modules and files

import styles, pip install, reading and writing files with with open(), file modes and a table of useful standard library modules.

OOP (classes)

Classes and objects, init and self, inheritance and method overriding, the four OOP pillars and dunder methods such as str.

Error handling

try, except, else and finally, raising and defining your own exceptions, and a table of common errors and when they happen.

Advanced Python

Generators with yield, decorators, context managers, type hints, dataclasses, virtual environments, async and await, and the GIL.

Practice and projects

Seven projects from a calculator to a web scraper and a mini API with Flask or FastAPI, a common mistakes table and eight practice questions.

Which Uncodemy Python PDF should you use?

Uncodemy has several Python PDFs, each for a different job. Use this page for a fast, complete path from basics to advanced for self-study, placements and interviews. Use the Python Programming Handwritten Notes PDF if you are preparing for a university Python paper, since it follows the exam units and marks pattern. Use the Python OOPs Notes PDF when you want classes, inheritance and dunder methods in depth, and the Python for Beginners PDF if you have never installed Python and want a gentler first step. For exam question practice, add the Python Programming Important Questions PDF.

How to learn Python with these notes

Type and run every example. Reading Python is easy; writing it without help is what interviews and jobs test.

  • Install Python 3 and use one folder with one file per section, such as 04_strings.py.
  • Before running each example, write down what you expect it to print, then compare.
  • After sections 1 to 8, build projects 1 to 3 from the last page; after OOP and errors, build projects 4 and 5.
  • Answer the eight practice questions out loud, as if in an interview, then check yourself against the notes.

Practise a little every day rather than a lot once a week. The notes end with one simple rule: practise daily and build one small project every week.

Concepts and code patterns to memorise

  • Mutable (list, dict, set) versus immutable (int, float, str, tuple).
  • / gives a float, // gives floor division, % gives the remainder, ** gives the power.
  • List comprehension: [x * x for x in range(5)], with an optional if filter.
  • try, except, else and finally: else runs when there is no error, finally always runs.
  • A generator uses yield and saves memory; a decorator wraps a function to add extra work.

Common mistakes beginners make

  • Mixing tabs and spaces, or wrong indentation.
  • Using = instead of == inside an if condition.
  • Changing a list while looping over it.
  • Using a list as a default argument, which is shared between calls.
  • Forgetting self as the first parameter of a method.
  • Forgetting that input() always returns a string.

Interview focus: Python topics asked most

Python rounds for freshers in development, data and testing roles usually check data types first, then functions, OOP and a few advanced features.

  • List, tuple, set and dict differences, and mutable versus immutable.
  • *args and **kwargs, lambda and list comprehensions.
  • The four pillars of OOP with Python examples.
  • Exception handling with try, except, else and finally.
  • Generators, decorators and the GIL.

Typical interview and viva questions

  1. What is the difference between a list, tuple, set and dict?
  2. Explain mutable and immutable types with examples.
  3. What are *args and **kwargs?
  4. Explain list comprehension with an example.
  5. What is a decorator, and what is a generator?
  6. Explain the four pillars of OOP in Python.
  7. Write a program to count the words in a text file.

Expect at least one small coding task, such as reversing a string, counting words or removing duplicates. Solve a few of these by hand before any interview.

A 7-day plan with the Python notes

  1. Day 1: Start with Python, variables and data types, operators. Install Python and run every example.
  2. Day 2: Strings, lists, tuples, sets and dicts. Practise slicing, methods and comprehensions.
  3. Day 3: Conditions and loops, functions. Build the calculator and number guessing game.
  4. Day 4: Modules and files. Build the to-do list that saves to a file.
  5. Day 5: OOP and error handling. Build the expense tracker with classes and try/except.
  6. Day 6: Advanced Python. Write one generator, one decorator and one dataclass of your own.
  7. Day 7: Practice and projects. Build the password generator or web scraper, then answer the eight practice questions from memory.

Seven days gets you through the notes once. Keep going with one new project each week, such as the mini API with Flask or FastAPI.

Who these notes are for

  • Complete beginners who want to learn Python on their own.
  • Students and freshers preparing for placement tests and Python interview rounds.
  • Career switchers moving into data analytics, development, testing or automation.
  • Anyone who learned Python earlier and wants a short refresher before an interview.

If you are preparing for a university Python exam, use the Python Programming Handwritten Notes PDF instead, because it follows the exam units. These notes are better for self-study and job preparation.

Download Python Notes PDF: Basics to Advanced

Python Notes PDF: Basics to Advanced

The PDF carries the same content as this page in a clean, print-ready layout, so you can read it offline and keep it for revision.

9 pages · 133 KB · PDF · Updated 5 Nov 2026

Download PDF

Sources and further reading

Frequently Asked Questions

Are these Python notes good for complete beginners?
Yes. They start from installing and running your first program and explain every topic in simple words with a short example. Read them in order and run each example yourself.
How are these notes different from the Python Programming Handwritten Notes PDF?
That PDF follows the university exam syllabus with exam tips and long questions. These notes are for self-study and job preparation, go up to advanced topics like decorators, async and dataclasses, and end with practice projects.
Do the notes cover advanced Python?
Yes. Section 11 covers generators, decorators, context managers, type hints, dataclasses, virtual environments, async and await, and the GIL.
Are these notes free?
Yes. Fill in the short form on this page and the PDF downloads right away. There is no fee for the notes.
Are these official notes or documentation?
No. They are original study notes written by the Uncodemy trainer team in a handwritten style. They are not issued by the Python Software Foundation, and they do not replace the official Python documentation.
Can I print these notes?
Yes. Print them for personal study, write your own examples and doubts in the margins, and keep the tables and code patterns on your desk while you build projects.