Channel
Python Learning Notes
Short, beginner-friendly notes on core Python ideas.
Filter by tag
Filter by year
20 articles
What Is a Dry Run? Trace an Algorithm with a State TableUse a small input and a trace table to locate the first state that differs from what the algorithm should produce.Read article →Why Should You Write Brute Force First? Define the Complete Search SpaceDefine every candidate, estimate the full search space, build a correct baseline, and only then add pruning or memoization.Read article →What Does Big O Mean? Think About Growth Before Memorizing a TableUnderstand O(1), O(N), and O(N²) by counting how work grows, then compare that growth with the input constraints.Read article →CCC Grid Problems: From Simulation to Graph SearchFive published CCC grid walkthroughs arranged into one evolution: cell-by-cell simulation, structural counting, and graph search — with a side-by-side table, the first trap of each generation, and a three-question way to classify any new grid problem.Read article →What Problems Are Python Sets Best At Solving?A beginner-friendly Python note on the three jobs sets are best at: O(N) deduplication, O(1) membership checks, and union/intersection/difference — plus how sets, dicts, and lists divide the work.Read article →Why Does Greedy Sorting Always Work? The Exchange Argument with Time on TaskUse CCC 2013 Time on Task to understand shortest-first greedy selection and prove it with an exchange argument.Read article →How Do You Build and Traverse a 2D List?Learn how to build, index, read, and traverse Python 2D lists while avoiding shared-row aliasing mistakes.Read article →What Is a Dry Run? Trace Your Code Before Running ItTrace code with small inputs and variable tables to catch boundary, initialization, and update-order mistakes.Read article →The Infinite Loop Beginners Write Most OftenLearn why while loops run forever and how to make their stopping conditions reachable.Read article →How Do You Choose Between for and while in Python?Choose the Python loop that best matches known items, fixed counts, or changing stop conditions.Read article →What Is the Difference Between append() and + in Python Lists?A beginner-friendly Python note on append(), +, extend(), nested lists, and combining list values.Read article →Understand Python String Slicing in One MinuteA beginner-friendly Python note on word[1:4], include start, exclude stop, and slicing boundaries.Read article →What Is the Difference Between = and == in Python?A beginner-friendly Python note on assignment, equality comparison, and writing correct if conditions.Read article →print() Is More Than Hello WorldA beginner-friendly Python note on using sep and end to control output formatting.Read article →Variables Are Not Boxes; They Are More Like LabelsA beginner-friendly Python note on understanding variables as names that point to objects.Read article →Python Readability: Why Clear Code Beats Clever CodeUse The Zen of Python, clear variable names, and small steps to write code that people can understand.Read article →Do Not Memorize Python Syntax FirstUse small problems, examples, and modifications to learn Python syntax as a tool for solving problems.Read article →Python Syntax Basics: Input, Operators, and ConditionsA beginner-friendly Python note on reading input, converting values, using operators, and writing clear if statements.Read article →Python Syntax Basics: Print, Variables, and TypesA beginner-friendly Python note on print(), comments, variable naming, basic types, and converting input before doing math.Read article →Why Learn Python? Start with Readability, Not SyntaxA short Python Learning Note based on Phase I materials: why Python is a good first language, and why beginners should start with readability rather than memorizing syntax.Read article →
No articles match your search or filters.
