Python 101¶
Topic-wise tutorials, practice questions, and solution notebooks - built to complement OPPE prep from the ground up. Click a Colab badge to open any notebook instantly in your browser.
🐍 Basics¶
Data types · variables · conditionals (if/elif/else) · while loops · for loops · range() · break/continue/else · nested loops
Python Basics Tutorial
Concepts explained with runnable examples, from data types through nested loops.
Python Basics - Questions
10 questions · Easy → Moderate-Hard · OPPE format with assertion test cells.
Python Basics - Solutions
Explanatory + Pythonic approaches with key ideas per question.
📋 Lists¶
Creating lists · indexing & slicing · list methods · iteration · len/sum/min/max/any/all · list comprehensions · nested lists / 2D matrices
Lists Tutorial
From creating a list to spiral traversal of a matrix - all the essentials in one place
Lists - Questions
10 questions · Easy → Moderate-Hard · OPPE format with assertion test cells
Lists - Solutions
Explanatory + Pythonic + Comprehension approaches with key ideas per question
Lists - Test
4 questions · Easy → Moderate-Hard
Lists Test - Solutions
Explanatory + Pythonic + Comprehension approaches with key ideas per question
📚 Dictionaries¶
Creating & accessing dicts · .get() / .items() / .keys() · setdefault · frequency counting · grouping · merging · nested dicts · multi-task analytics
Dictionaries Tutorial
All core dict operations with worked examples, from basics to nested structures
Dictionaries Advance Tutorial
All core dict operations with worked examples, from basics to nested structures
Dictionaries - Questions
15 questions · Easy → Hard · 8 real OPPE problems · basics to deep nested dicts.
Dictionaries - Solutions
Explanatory + Pythonic approaches with key ideas per question
Dictionary - Test
10 questions · Easy → Moderate-Hard
Dictionaries - Solutions
Explanatory + Pythonic approaches with key ideas per question.
λ Lambda Functions¶
Lambda syntax · map() · filter() · sorted() with key · combining lambdas with comprehensions
📁 File Handling¶
Reading & writing text files · CSV parsing · line-by-line processing · global counters · character-level transforms · multi-file operations
File Handling Tutorial
All common file operations with worked examples - open, read, write, append, CSV.
File Handling - Questions
18 questions · Basic → Hard · 10 real OPPE problems · local file test cells.
File Handling - Solutions
Explanatory + Pythonic approaches with key ideas per question.
How to use
- Click a Colab badge - the notebook opens in your browser, no installation needed.
- Go to File → Save a copy in Drive to get your own editable version.
- Work through the Tutorial first, attempt Questions, then check Solutions.