Python Programming Study Notes
Everything on SkillVeris tagged Python Programming Study Notes — collected across the glossary, study notes, blog, and cheat sheets.
61 resources across 1 library
Study Notes(61)
Abstract Classes in Python
Using the abc module to define abstract base classes and abstract methods that force subclasses to implement required behavior.
Abstraction in Python
How Python hides implementation complexity behind simple interfaces, using the abc module to enforce required methods.
break, continue and pass in Python
Master Python's three loop control statements: break to exit early, continue to skip an iteration, and pass as a no-op placeholder.
Class Methods and Static Methods in Python
The difference between instance methods, @classmethod (receives cls), and @staticmethod (receives neither self nor cls), with practical use cases.
Classes and Objects in Python
How Python's class statement defines a blueprint for objects, and how instances are created and used.
Comments in Python
How to write single-line and multi-line comments in Python, and the difference between comments and docstrings.
Constructors in Python
How __init__ initializes new objects, why it isn't really the constructor, and how default values work.
Custom Exceptions in Python
How to define your own exception classes to represent domain-specific errors, and how to raise and chain them properly.
Data Types in Python
A tour of Python's built-in data types — numeric, sequence, mapping, set, boolean, and NoneType — and how mutability affects each.
Decorators in Python
Learn how Python decorators use the @syntax to wrap functions, adding behavior like logging or timing without changing the original function's code.
Default and Keyword Arguments in Python
How to give function parameters default values and call functions with keyword arguments, plus the notorious mutable default argument trap.
Dictionaries in Python
Python's key-value mapping type, covering hashable keys, insertion order guarantees (3.7+), common dict methods, and typical gotchas.
else Clause in Exception Handling
How the try/except/else clause runs code only when no exception occurred, and how it differs from finally.
Encapsulation in Python
How Python bundles data and methods together and uses naming conventions and name mangling to signal restricted access.
Exceptions in Python
What exceptions are, how Python's built-in exception hierarchy is structured, and how errors propagate through a program.
Features of Python
A tour of Python's core language features — dynamic typing, simplicity, portability, extensive libraries, and more — that explain its widespread adoption.
File Handling in Python
Understand how to open, read, write, and close files in Python using the built-in open() function and file modes.
finally Block in Python
How the finally clause guarantees cleanup code runs no matter what happens in a try block, including with return and break.
for Loop in Python
Understand how Python's for loop iterates over sequences and iterables like lists, strings, and ranges.
Function Arguments in Python
Understanding positional, positional-only, keyword-only, *args, and **kwargs arguments in Python function signatures.
Functions in Python
How to define, call, and document reusable blocks of code with Python functions, including the def keyword and implicit None return.
Generators in Python
Learn how to write generator functions with yield to produce lazy, memory-efficient sequences of values in Python.
History and Evolution of Python
A timeline of Python's origins, major version milestones, and the design philosophy that shaped it from 1989 to today.
if-elif-else in Python
Learn how Python's if, elif, and else statements let your program make decisions based on conditions.
Showing 24 of 61.