Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 5788

Python

Keyword continue

Skip the rest of the current iteration in the nearest loop.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword def

Executing def creates a function, and its name receives the result of any decorators, which can replace it.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword del

Remove bindings or delegate deletion to an attribute or subscript target.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword elif

Test an alternative condition only after all earlier if and elif conditions were false.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword else

After if, else handles the path where no condition matched.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword except

Handle the first except clause matching the raised exception class or a superclass.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword False

False is one of the two singleton bool objects and its spelling is case-sensitive.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword finally

Run cleanup when control leaves the associated try, including through return or exception.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword for

Evaluate the iterable expression once, obtain its iterator and assign each next value to the target.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword from

In an import, bind a selected member to a local name, optionally through an alias.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword global

A global declaration makes the listed names refer to the module namespace throughout the current code block.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword if

Evaluate a condition using Python truth testing rather than comparison with True.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword import

Locate and initialize a module if necessary, then bind a name in the current namespace.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword lambda

Create a function object from one expression and return the expression’s value when called.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword match

Evaluate the subject once and try case patterns in order.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword None

None is the sole instance of NoneType and often represents an absent result.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword nonlocal

Make a name refer to the nearest existing binding in an enclosing function scope, allowing rebinding from a nested function.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword pass

Satisfy Python’s requirement for a nonempty suite without performing an operation.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword raise

Raise a BaseException instance or a suitable exception class.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword return

Leave the current function with the evaluated expression, or None when no expression is given.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword True

True is the true singleton of bool, distinct by identity from the integer 1 although both compare equal and have the same hash.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword try

Protect a suite with matching exception handlers or attach unconditional cleanup with finally.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword while

Test the condition before each iteration, including the first.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Keyword with

Enter the context manager and optionally bind the value returned by `__enter__`.

Intermediate · Python 3.14; repository image, production runtime not attested