Feb 6, 2016
Unpacking var: positional, strictly based on position, 1-to-1 matching. _: placeholder, holds a places and ignores the value to satisfy syntax requirements, 1-to-1 matching. *foo: catch-all, catches the rest of the values...
Jan 30, 2016
Iterators An object that represents a stream of data. It fetches one element at a time using the __next__() method and maintains its internal state to know "what's next." range: generates a...
Jan 23, 2016
Membership Checks if an element is in a container; in, not in. Logic Connects multiple Boolean conditions and evaluate the overall outcome; and, or, not. Logic Extended Performs 'bulk' logical checks, simplifying...
Jan 16, 2016
Conditional Statements if-elif-else: logical branching. Truthy Falsy Values if obj:, while executing it, Python evaluates the following internal logic: bool(): Python first calls for this method; if it exists, its return value...
Jan 9, 2016
Mutable and Immutable Types Data Copy Behavior Immutable Data cannot be modified after creation, modifications create new objects Shallow and deep copy all refer to the original object; no copy needed, modifications...