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

heapq.merge

Lazily merges pre-sorted streams into one ordered stream.

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

heapq.nlargest

Selects the largest items in descending comparison-key order.

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

heapq.nsmallest

Selects the smallest items in ascending comparison-key order.

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

io.BufferedIOBase

Defines the common interface for buffered binary streams with byte-oriented reads and writes.

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

io.BytesIO

Creates a seekable in-memory binary stream.

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

io.StringIO

Provides an in-memory text stream for reading, writing and capturing Unicode text.

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

io.TextIOBase

Defines the base interface for character-oriented streams, including decoded text reads.

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

iterator.__next__

The iterator method returns the next item and raises StopIteration when exhausted.

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

itertools.accumulate

Yields successive running totals, or successive results of a supplied binary operation.

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

itertools.batched

Consumes an iterable in consecutive tuples of at most the requested size.

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

itertools.chain

Yields the members of each input iterable to form one consecutive sequence.

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

itertools.combinations

Enumerates selections of positions without replacement in input order.

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

itertools.combinations_with_replacement

Enumerates selections whose positions may be reused while their order stays nondecreasing.

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

itertools.compress

Yields data items paired with truthy selectors.

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

itertools.count

Produces an unbounded arithmetic progression from a starting point and step.

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

itertools.cycle

Caches items from the input and then repeats them in order.

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

itertools.dropwhile

Skips an initial run while the predicate holds, then yields the rest unchanged.

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

itertools.filterfalse

Yields items for which the predicate returns a falsy result.

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

itertools.groupby

Groups consecutive items that share a key and yields a key plus a group iterator.

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

itertools.islice

Lazily selects positions from an iterable using nonnegative bounds.

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

itertools.pairwise

Yields overlapping pairs of neighboring input items.

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

itertools.permutations

Enumerates ordered selections of distinct input positions.

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

itertools.product

Generates the Cartesian product with the rightmost input advancing fastest.

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

itertools.repeat

Yields the same object repeatedly, optionally for a fixed number of iterations.

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