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

Module unittest

Organize test methods in TestCase classes and execute them as suites.

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

Operator +

Adds numbers or concatenates compatible sequences.

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

Operator +=

Extends the list on the left with the elements of the iterable on the right.

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

Operator =

Binds a name to the object produced by the right-hand expression.

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

Operator :=

Binds the result of an expression to a name and also yields that result.

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

Operator &

Keeps the bit positions set in both integers.

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

Operator &=

Clears the stored integer bits that also occur as zeroes in the mask on the right.

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

Operator ~

Inverts every bit of a Python integer.

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

Operator |

Sets every bit position present in either integer.

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

Operator |=

Sets the indicated bits in the stored integer while preserving the bits already present.

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

Operator ^

Sets exactly the bit positions where the operands differ.

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

Operator ^=

Toggles precisely the stored bits selected by the mask on the right.

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

Operator x if condition else y

Selects one of two expressions according to a truth test.

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

Operator /

Computes the true quotient of two numbers.

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

Operator /=

Divides the stored number by the right operand and replaces it with the true quotient.

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

Operator ==

Compares values using the equality protocol.

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

Operator **

Raises the left operand to the power on its right.

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

Operator **=

Raises the stored value to the specified power and assigns the result to the same target.

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

Operator //

Rounds the quotient down to the nearest integer at or below its value.

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

Operator //=

Divides the stored value and writes the quotient rounded toward negative infinity back to the target.

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

Operator >=

Tests whether the left value is greater than or equal to the right value.

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

Operator >

Tests strict descending order between comparable operands.

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

Operator is

Tests whether two references designate the same object.

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

Operator []

Selects an item by index or a subsequence by slice.

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