bin()
Formats an integer in base two with a binary prefix.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Formats an integer in base two with a binary prefix.
Converts the truth value of an object into a Boolean.
Invokes the current breakpoint hook, which normally enters the configured debugger.
Constructs a mutable sequence of byte values.
Constructs an immutable byte sequence from a length, iterable of byte values, or buffer.
Checks whether an object appears to support the calling protocol.
Creates a string containing the Unicode character for an integer code point.
Binds the class as the first argument when a method is accessed through a class or instance.
Compiles source text into a reusable code object for the selected compilation mode.
Builds a complex number from real and imaginary components or parses a complex literal string.
Requests deletion of the named attribute through the type’s `__delattr__` protocol.
Builds a dictionary from a mapping, key-value pairs, or keyword bindings.
Lists names that an object advertises for interactive discovery.
For integers, computes the floor quotient and the corresponding remainder as a pair.
Pairs successive input items with an incrementing counter.
Evaluates a Python expression in the supplied namespace and returns its value.
Executes a suite of trusted Python statements in a chosen namespace.
Lazily retains input items that pass the supplied predicate.
Converts a numeric input or a valid decimal string into a floating-point number.
Converts a value to text using the formatting protocol implemented by its type.
Creates an immutable set of distinct hashable elements.
Reads an attribute whose name is supplied as a string.
Returns the dictionary implementing the current module’s global namespace.
Attempts an attribute lookup and reports whether it finishes without AttributeError.