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

logging.INFO — informational level

logging.INFO is the constant 20, identifying events during normal program operation. Using it as a threshold admits INFO and higher levels, but excludes DEBUG.

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

logging.Logger

A logger receives messages, applies its threshold and sends accepted records to handlers.

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

LoggerAdapter.info — contextual logging

LoggerAdapter.info logs an INFO message with adapter context, such as a request identifier. Learn how default extra handling differs from merge_extra=True.

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

logging.StreamHandler

Writes formatted log records to a text stream with a terminating string.

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

logging.warning

Emits a warning-level record for an unexpected situation that still permits progress.

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

math.ceil

Rounds upward to the smallest integer greater than or equal to the argument.

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

math.comb

Counts ways to choose distinct positions without replacement and without regard to order.

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

math.cos

Computes the cosine of an angle measured in radians.

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

math.e

Supplies a floating-point approximation to the base of the natural logarithm.

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

math.factorial

Multiplies all positive integers up to the supplied nonnegative integer.

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

math.floor

Rounds downward to the greatest integer less than or equal to the argument.

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

math.fsum

Accumulates floating-point values while tracking multiple partial sums to limit loss of precision.

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

math.gcd

Computes the greatest common divisor of the supplied integers.

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

math.inf

Represents positive floating-point infinity and can serve as an initial upper bound.

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

math.isclose

Tests numerical proximity using relative and absolute tolerances.

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

math.isfinite

Tests whether the converted floating-point value is neither infinite nor NaN.

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

math.isinf

Recognizes positive and negative floating-point infinity.

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

math.isnan

Tests whether a numeric argument is a floating-point NaN.

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

math.lcm

Computes the nonnegative least common multiple of integer arguments.

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

math.log

Computes a natural logarithm or a logarithm to the specified base.

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

math.log10

Computes the base-ten logarithm of a positive real value.

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

math.log2

Computes the base-two logarithm of a positive real value.

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

math.nan

Represents a floating-point value whose numeric result is undefined.

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

math.perm

Counts ordered selections of distinct positions without replacement.

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