Posts
Python Basics: Working with Live Dictionary Views
Dictionary keys, values, and items can be inspected through live views. Understanding the difference between a view and a snapshot helps when comparing mappings or removing …
October 20, 2026
Python Basics: Numbering and Pairing Items with enumerate and zip
A loop often needs a human-friendly row number or matching values from two columns. enumerate and zip express those jobs directly. Use strict pairing when unequal column lengths …
October 20, 2026
Python Basics: Encoding Text and Decoding Byte Chunks
Text and bytes represent different things. Encode text when a boundary needs bytes, and decode bytes using the format that produced them. Invalid input and split multibyte …
October 20, 2026
Python Basics: Comparing Membership with set and frozenset
Sets answer questions about membership without retaining duplicate entries. They work well for tags and required features. A frozenset adds an immutable form that can itself be a …
October 20, 2026
Python Basics: Building Classes That Support Iteration
A class can work in for loops by implementing the iteration protocol. Separate a one-pass iterator from a reusable iterable so callers know whether a second traversal starts over. …
October 20, 2026
Linux Basics: Manage Dedicated Input and Output in Bash
File descriptors are open connections for input and output. Bash starts with standard input (0), standard output (1), and standard error (2). Additional descriptors let a script …
October 20, 2026
Linux Basics: Limit Temporary Shell Changes with Bash Subshells
Parentheses run a group of commands in a subshell. They are useful when a short operation needs a different directory, shell option, or variable value without leaving that shell …
October 20, 2026
Linux Basics: Connect Generated Inputs with Bash Process Substitution
Some commands accept two filenames but only one standard input. Bash process substitution supplies generated streams where filenames are expected, without creating named …
October 20, 2026
Linux Basics: Capture Command Output with Bash Command Substitution
Use $(command) when a small text result belongs in a variable. Keep the result quoted, understand what happens to newlines, and check whether the producing command succeeded. These …
October 20, 2026
Linux Basics: Calculate Small Integers in Bash
Bash can calculate counts, durations, and small integer totals without an external calculator. Learn the difference between expanding a result, validating decimal input, and …
October 20, 2026