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
- What is the difference between a list, tuple, set and dict?
- Explain mutable and immutable types with examples.
- What are *args and **kwargs?
- Explain list comprehension with an example.
- What is a decorator, and what is a generator?
- Explain the four pillars of OOP in Python.
- 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
- Day 1: Start with Python, variables and data types, operators. Install Python and run every example.
- Day 2: Strings, lists, tuples, sets and dicts. Practise slicing, methods and comprehensions.
- Day 3: Conditions and loops, functions. Build the calculator and number guessing game.
- Day 4: Modules and files. Build the to-do list that saves to a file.
- Day 5: OOP and error handling. Build the expense tracker with classes and try/except.
- Day 6: Advanced Python. Write one generator, one decorator and one dataclass of your own.
- 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