Keyword break
Exit the innermost enclosing loop and skip that loop’s else suite.
CKTIS / Python
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Exit the innermost enclosing loop and skip that loop’s else suite.
Select a match arm by testing its pattern before its optional guard.
The class body runs immediately in a new namespace and the name receives the result of applying decorators, which can replace the class.
Skip the rest of the current iteration in the nearest loop.
Executing def creates a function, and its name receives the result of any decorators, which can replace it.
Remove bindings or delegate deletion to an attribute or subscript target.
Test an alternative condition only after all earlier if and elif conditions were false.
After if, else handles the path where no condition matched.
Handle the first except clause matching the raised exception class or a superclass.
False is one of the two singleton bool objects and its spelling is case-sensitive.
Run cleanup when control leaves the associated try, including through return or exception.
Evaluate the iterable expression once, obtain its iterator and assign each next value to the target.
In an import, bind a selected member to a local name, optionally through an alias.
A global declaration makes the listed names refer to the module namespace throughout the current code block.
Evaluate a condition using Python truth testing rather than comparison with True.
Locate and initialize a module if necessary, then bind a name in the current namespace.
Create a function object from one expression and return the expression’s value when called.
Evaluate the subject once and try case patterns in order.
None is the sole instance of NoneType and often represents an absent result.
Make a name refer to the nearest existing binding in an enclosing function scope, allowing rebinding from a nested function.
Satisfy Python’s requirement for a nonempty suite without performing an operation.
Raise a BaseException instance or a suitable exception class.
Leave the current function with the evaluated expression, or None when no expression is given.
True is the true singleton of bool, distinct by identity from the integer 1 although both compare equal and have the same hash.