Category: Python

Python Tutorial / Understand Variable Scope, Aliasing and Mutable Objects
Separate scope, rebinding and mutation; compare aliases with shallow copies and define whether functions preserve or modify their inputs.

Python Tutorial / Collect and Unpack Arguments with *args and **kwargs
Read star syntax in definitions and calls, collect flexible arguments and avoid duplicate keywords, accidental string expansion and unchecked option forwarding.

Python Tutorial / Use Positional Arguments, Keywords and Defaults
Write readable positional and keyword calls, use keyword-only options and prevent shared mutable defaults while documenting intentional input mutation.

Python Tutorial / Define Functions and Return Values
Define functions with clear parameters and return contracts, separate computation from printing and test call order, arguments and missing return values.

Python Tutorial / Practice Conditions and Loops with a Score Summary
Combine validation, branching and iteration in a complete score-summary program, with visible rejected counts and explicit empty-input and boundary checks.

Python Tutorial / Build List, Dictionary and Set Comprehensions
Distinguish filters from conditional expressions, build list/dictionary/set comprehensions and preserve the correct meaning of duplicates and empty results.

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.