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

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
Python

Keyword yield

In an ordinary function, yield makes calling it create a generator rather than execute the body immediately.

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

abc — abstract base classes

The abc module lets you define abstract base classes and mark methods as abstract.

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

Module asyncio

Coordinate asynchronous I/O with an event loop, coroutines and tasks.

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

Module collections

Provides specialized containers including Counter, deque and defaultdict.

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

Module contextlib

Build and compose context managers for scoped resources.

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

Module cProfile

Profile a workload by recording call events, counts and elapsed times.

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

Module csv

Parse and write delimited text using dialect rules for separators and quoting.

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

Module dataclasses

Generate field-based initialization, representation and equality from a class declaration.

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

Module datetime

Represent dates, times, combined timestamps and durations.

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

decimal — decimal arithmetic

The decimal module provides Decimal for decimal calculations with explicit precision and rounding control, useful for monetary amounts and similar data.

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

Module functools

Transform callables with tools for partial application, wrapping and memoization.

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

Module heapq

Maintain a binary heap in a list for priority-queue operations.

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

Module io

Provides raw, buffered binary and decoded text streams, including in-memory buffers.

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

Module itertools

Compose iterators for lazy transformations, grouping and combinatorics.

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

Module logging

Route severity-tagged records from named loggers through handlers and formatters.

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

Module math

Provides real-number mathematics, including floating-point functions, constants and exact integer operations.

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

pstats — analyzing profiling results

The pstats module analyzes data from cProfile or profile: it sorts function statistics and produces reports that help locate expensive parts of a program.

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

Module re

Compile regular expressions to search, match, extract or replace text.

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

sys — access to the Python interpreter

The sys module exposes interpreter parameters, program arguments, standard streams, and a function that signals program termination.

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

Module timeit

Benchmark a small statement or callable in repeated batches.

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

Module typing

Express static relationships using annotations, unions, generics and protocols, and inspect them at runtime.

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