Skip to content

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


📋 Lists

Creating lists · indexing & slicing · list methods · iteration · len/sum/min/max/any/all · list comprehensions · nested lists / 2D matrices


📚 Dictionaries

Creating & accessing dicts · .get() / .items() / .keys() · setdefault · frequency counting · grouping · merging · nested dicts · multi-task analytics


λ 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


How to use

  1. Click a Colab badge - the notebook opens in your browser, no installation needed.
  2. Go to File → Save a copy in Drive to get your own editable version.
  3. Work through the Tutorial first, attempt Questions, then check Solutions.