ord()
Returns the Unicode code point of a single-character string.
CKTIS / Python
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Returns the Unicode code point of a single-character string.
Computes a power, optionally performing modular exponentiation.
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.
Exposes a method as a managed attribute read on an instance.
range represents an immutable sequence of integers. It stores bounds and a step rather than keeping every individual value in memory.
Requests a representation suitable for inspection or debugging.
Returns an iterator over a reversible object in reverse order.
Rounds a number to the requested decimal position, or returns the nearest integer when the position is omitted.
Collects distinct hashable values into a mutable set.
Assigns an attribute whose name is supplied as a string.
Represents the bounds and step of a subsequence selection as an object.
Builds a new sorted list from the members of an iterable.
Stores a function on a class without binding the instance or class as an implicit first argument.
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.
Accumulates numeric input starting at the supplied initial value.
Obtains a proxy that continues attribute lookup after the current class in the method resolution order.
Collects successive values into an immutable ordered sequence.
Returns the actual type of a runtime object.
Returns the attribute dictionary of an object that provides one.
Groups parallel items from multiple iterables into tuples.
Bind a name according to the surrounding statement.
Test a debugging invariant with a truth test when `__debug__` is true.
An async def without yield creates a coroutine function whose call returns a coroutine object without executing the body.
Inside a coroutine or asynchronous generator, obtain the result or exception of an awaitable.