Recent Posts

Python Tutorial / Control Repetition with while, break and continue
Build a terminating input loop, follow break and continue precisely and test empty input, zero, negative values and quit commands.

Python Tutorial / Loop with for, range, enumerate and zip
Choose direct iteration, ranges, counters and paired collections, and use strict zip and boundary checks to avoid silently skipped data.

Python Tutorial / Choose Execution Paths with if, elif and else
Design mutually exclusive Python branches, apply consistent indentation and test boundaries and variable assignments across every execution path.

Python Tutorial / Compare Values and Combine Boolean Conditions
Understand comparison chains, truthiness, short-circuit evaluation and operand-returning and/or expressions without losing valid zero or empty values.

Python Tutorial / Remove Duplicates with Sets and Choose Collections
Apply set membership, union, intersection and difference, distinguish remove from discard, and choose a collection without losing meaningful duplicates.

Python Tutorial / Store Key–Value Data with Dictionaries
Use dictionaries for named fields and grouped totals, distinguish required lookups from get defaults, and handle key normalization and mutation safely.

Python Tutorial / Understand Tuples and Sequence Unpacking
Create tuples, unpack fixed and variable-length sequences, and understand nested mutability, hashability and when named fields improve a record.

Python Tutorial / Create Lists and Add, Change and Remove Items
Create and modify lists, compare append with extend and sorted with sort, and avoid common empty-list, copying and iteration mistakes.

Python Tutorial / Work with Strings, Slices and Formatting
Use string indexing, slicing, strip, split, join and f-strings while distinguishing immutable text, Unicode length and structured-data parsing.

Python Tutorial / Understand Integers, Floats and Numeric Conversion
Compare int, float and Decimal, understand negative floor division and choose explicit conversion and precision rules for expense calculations.