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

Operator <=

Tests whether the left operand is less than or equal to the right.

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

Operator <

Tests strict ascending order between comparable operands.

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

Operator and

Returns the first falsy operand or the last operand reached.

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

Operator not

Inverts the truth value of its operand and returns a Boolean.

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

Operator or

Returns the first truthy operand or the last operand reached.

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

Operator @=

Assigns the result of matrix multiplication back to its target.

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

Operator @

Requests matrix multiplication through the operand protocol.

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

Operator in

Tests whether a container contains the given member.

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

Operator *

Multiplies numbers or repeats a sequence an integral number of times.

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

Operator *=

Repeats a mutable sequence in place when the right operand is an integer.

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

Operator is not

Tests whether references designate distinct objects.

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

Operator not in

Tests whether membership in the right operand fails.

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

Operator %

Computes the remainder paired with floor division.

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

Operator %=

Replaces the stored number with its remainder after floor division by the right operand.

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

Operator >>

Shifts integer bits right by the count on the right.

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

Operator >>=

Drops the indicated number of low bits from the stored integer using an arithmetic right shift.

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

Operator -

Subtracts the right operand from the left.

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

Operator -=

Subtracts the right operand from the stored value and writes the difference back to the target.

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

Unary minus

Negates a single operand and returns the result of its numeric negation protocol.

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

Dictionary unpacking

The expression {**a, **b} creates a new dictionary from the items of two mappings. For repeated keys, the later value wins; the source dictionaries remain unchanged.

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

docstring — documentation string

A docstring is an ordinary string literal (not an f-string or a t-string) used as the first statement of a module, class, or function. It documents the object's purpose and is available through __doc__; it is not a comment beginning with #.

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

Quoted forward-reference annotations

An annotation such as "Node" describes a type using a name stored as text, even when the class is defined later. Python 3.14 defers annotation evaluation by default, so quotes are often no longer necessary, but remain valid syntax.

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

Formatted string literals

An f-string evaluates replacement fields at runtime and inserts their formatted values into text.

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

Raw string literal

The r prefix in r'...' preserves backslashes instead of interpreting escape sequences such as \n. The result remains an ordinary str object.

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