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

ord()

Returns the Unicode code point of a single-character string.

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

pow()

Computes a power, optionally performing modular exponentiation.

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

print: output text, not a function result

print writes text representations of objects to a stream. It returns None, so displaying a value does not replace returning it from your own function.

Basic · Python 3.14
Python

property()

Exposes a method as a managed attribute read on an instance.

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

repr()

Requests a representation suitable for inspection or debugging.

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

reversed()

Returns an iterator over a reversible object in reverse order.

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

round()

Rounds a number to the requested decimal position, or returns the nearest integer when the position is omitted.

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

set()

Collects distinct hashable values into a mutable set.

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

setattr()

Assigns an attribute whose name is supplied as a string.

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

slice()

Represents the bounds and step of a subsequence selection as an object.

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

sorted()

Builds a new sorted list from the members of an iterable.

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

staticmethod()

Stores a function on a class without binding the instance or class as an implicit first argument.

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

str: a text representation of an object

str creates a Unicode string. Converting a number to text does not perform arithmetic, and turning bytes into text requires a deliberate choice of encoding.

Basic · Python 3.14
Python

sum()

Accumulates numeric input starting at the supplied initial value.

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

super()

Obtains a proxy that continues attribute lookup after the current class in the method resolution order.

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

tuple()

Collects successive values into an immutable ordered sequence.

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

type()

Returns the actual type of a runtime object.

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

vars()

Returns the attribute dictionary of an object that provides one.

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

zip()

Groups parallel items from multiple iterables into tuples.

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

Keyword as

Bind a name according to the surrounding statement.

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

Keyword assert

Test a debugging invariant with a truth test when `__debug__` is true.

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

Keyword async

An async def without yield creates a coroutine function whose call returns a coroutine object without executing the body.

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

Keyword await

Inside a coroutine or asynchronous generator, obtain the result or exception of an awaitable.

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