Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Python

Knowledge base — Python

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

Entries: 583

Python

Operator !=

Tests whether two values compare unequal.

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

Operator <<

Shifts all integer bits left by the count on the right.

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

Operator <<=

Multiplies a stored integer by a power of two through a left shift and updates the target.

Basic · Python 3.14; repository image, production runtime not attested
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