Key takeaways
- Collections, functions, OOP, exceptions and file handling carry most marks.
- Short programs such as factorial, palindrome and file word count appear often.
- Each section has exam tips and formula boxes, and the last page lists the most asked practice questions.
- These are original Uncodemy revision notes, not official university notes; check your own syllabus.
About these Python handwritten notes
This page offers Uncodemy's Python Programming notes as a free handwritten-style PDF. Python Programming teaches a readable, general-purpose language used for automation, web development and data science. The notes are written in short points with neat tables, labelled diagrams, boxed formulas and exam tips, so you can revise a full unit in one sitting instead of reading a long textbook chapter.
Please note: these are original Uncodemy revision notes. They follow the common syllabus that most Indian universities share for this subject, but they are not official university notes. Check your own university syllabus and add anything it lists that is missing here.
What's inside the Python notes
The PDF is arranged in 9 sections plus a final page of most asked practice questions. The sections follow the usual unit order of a Python Programming syllabus, so you can map them to your own units quickly. Here is what each section covers.
Introduction
Features of Python, why it is called interpreted, identifiers, keywords, comments and indentation.
Data types and operators
Numbers, strings and booleans, mutable vs immutable types, and arithmetic, comparison, logical, membership and identity operators.
Control flow
if, elif and else, for and while loops, range, and break, continue and pass.
Strings and collections
String methods and slicing, list, tuple, set and dictionary compared, and list, set and dictionary comprehensions.
Functions
Defining functions, default and keyword arguments, *args and **kwargs, lambda, map and filter, and the LEGB scope rule.
Object-oriented programming
Classes and objects, __init__ and self, and the four pillars of OOP with Python code.
Exception handling
try, except, else and finally, raising exceptions and common built-in exceptions.
File handling
Opening files in different modes, reading and writing, and the with statement.
Modules, packages and advanced topics
Importing modules and packages, iterators and generators with yield, decorators, and shallow vs deep copy.
Most asked questions (practice)
Ten exam-style questions, from Python features to writing a decorator.
How to use handwritten notes to revise Python
Python exams reward clean, short programs. Use the notes to revise the rules, then type each example into an interpreter and change it.
- Make a four-column table comparing list, tuple, set and dictionary on order, mutability and duplicates.
- Write
*argsand**kwargsexamples and a lambda with map and filter from memory. - Write a class with inheritance and method overriding to revise the four pillars.
- Write a program that reads a file and counts lines and words, using a with block and try-except.
A simple three-pass method works well with handwritten notes. In the first pass, read one section and underline only what you do not already know. In the second pass, close the notes and write the definitions, diagrams and steps for that section on a blank sheet, then compare and correct in a different colour. In the third pass, a day or two later, answer two or three exam-style Python questions in timed conditions using only memory. Add your own examples and doubts in the margins so the PDF becomes your personal revision copy.
Formulas, diagrams and definitions to memorise
- Mutable types: list, dict, set. Immutable types: int, float, str, tuple, frozenset.
- The LEGB order of name lookup: Local, Enclosing, Global, Built-in.
- Slicing syntax
s[start:stop:step], ands[::-1]to reverse a string or list. - The flow of try, except, else and finally, and when each block runs.
- A generator uses yield and produces values one at a time; return ends the function.
Common mistakes that cost marks
- Using a mutable default argument such as
def f(x=[]), which keeps changes between calls. - Mixing up shallow copy and deep copy for nested lists.
- Forgetting to close files; use a with block instead.
- Indentation errors from mixing tabs and spaces.
Exam focus: Python topics that carry the most marks
These Python topics carry the most marks in most university papers.
- Data types, mutability and collections.
- Functions, arguments, lambda and the LEGB rule.
- OOP in Python and exception handling.
- File handling, generators and decorators.
Typical long questions
- Explain the features of Python and why it is called an interpreted language.
- Differentiate list, tuple, set and dictionary.
- Explain mutable and immutable types with examples.
- Explain
*args,**kwargs, lambda, map and filter. - Explain the LEGB scope rule with a program.
- Explain the four pillars of OOP in Python with code.
- Write a program to read a file and count its words and lines.
Marks per question change between universities and years, so confirm the pattern on a recent official paper. In long answers, start with a definition, add a labelled diagram or table, explain the steps and finish with an example or comparison. Underline the key term in each answer and leave a line between steps, because examiners mark faster when the structure is easy to see.
A 7-day revision plan for Python
- Day 1: Introduction, Data types and operators.
- Day 2: Control flow, Strings and collections.
- Day 3: Functions, Object-oriented programming.
- Day 4: Exception handling, File handling.
- Day 5: Modules, packages and advanced topics.
- Day 6: write the programs again: factorial, Fibonacci, prime check, palindrome, string reverse, a generator and a simple decorator.
- Day 7: answer the most asked practice questions at the end of the notes from memory, then solve one official previous year paper in three hours and mark the units that cost you time.
Keep a single sheet of formulas, definitions and diagrams from the notes for the last hour before the exam, and do not start new topics on the final day.
Who these notes are for
- B.Tech students with Python as a first-year or semester programming paper.
- BCA and MCA students with a Python programming paper.
- Beginners preparing for data science, automation or web development courses.
- Freshers revising Python basics before coding tests and interviews.
The notes are a revision aid, not a first textbook. If a Python topic is new to you, learn it from your prescribed book or class lectures first, then come back to the notes to compress and revise it. For practice, pair them with the Python Programming Important Questions PDF page and your university's official previous year papers. If your syllabus has a topic that is not covered here, you can ask for it through the handwritten notes request page linked below.
Download Python Programming Handwritten Notes PDF
Python Programming Handwritten Notes PDF (Free)
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.
7 pages · 348 KB · PDF · Updated 5 Nov 2026