Skip to content

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 …

Read more →

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 …

Read more →

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 …

Read more →

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 …

Read more →

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. …

Read more →

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 …

Read more →

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 …

Read more →

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 …

Read more →

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 …

Read more →

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 …

Read more →

October 20, 2026