Sobes.tech
Junior

What built-in functions are available in Python and what are they used for?

sobes.tech AI

Answer from AI

abs(): Returns the absolute value of a number. all(): Returns True if all elements of the iterable are true. any(): Returns True if any element of the iterable is true. ascii(): Returns a string representation of an object, escaping non-ASCII characters. bin(): Converts an integer to a binary string with a '0b' prefix. bool(): Converts a value to a boolean (True or False). breakpoint(): Starts the debugger at the current point. bytearray(): Returns a new array of bytes. bytes(): Returns an immutable bytes object. callable(): Returns True if the object appears callable. chr(): Returns the character corresponding to an Unicode code point. classmethod(): Converts a method into a class method. compile(): Compiles source into a code object. complex(): Returns a complex number. delattr(): Deletes an attribute from an object. dict(): Returns a new dictionary. dir(): Returns a list of names in the current local scope or attributes of an object. divmod(): Returns a tuple of quotient and remainder when dividing two numbers. enumerate(): Returns an enumerate object, which yields pairs of index and value. eval(): Executes a string or code object. exec(): Executes dynamically created code. filter(): Creates an iterator that filters elements of an iterable. float(): Converts a value to a floating point number. format(): Formats a value with a specified format. frozenset(): Returns a new frozenset object. getattr(): Returns the value of a named attribute of an object. globals(): Returns a dictionary representing the current global symbol table. hasattr(): Checks if an object has a specific attribute. hash(): Returns the hash value of an object. help(): Invokes the built-in help system. hex(): Converts an integer to a hexadecimal string with a '0x' prefix. id(): Returns the identity of an object. input(): Reads a line from input. int(): Converts a value to an integer. isinstance(): Checks if an object is an instance of a class or a subclass thereof. issubclass(): Checks if a class is a subclass of another class. iter(): Returns an iterator object. len(): Returns the length of an object. list(): Returns a new list. locals(): Returns a dictionary representing the current local symbol table. map(): Applies a function to all items in an iterable. max(): Returns the largest item in an iterable or the largest of two or more arguments. memoryview(): Returns a memory view object. min(): Returns the smallest item in an iterable or the smallest of two or more arguments. next(): Retrieves the next item from an iterator. object(): Returns a new featureless object. oct(): Converts an integer to an octal string with a '0o' prefix. open(): Opens a file. ord(): Returns the Unicode code point for a character. pow(): Returns x raised to the power y, optionally modulo z. print(): Prints objects to the text stream file. property(): Returns a property attribute. range(): Returns an immutable sequence of numbers. repr(): Returns a string that represents the object. reversed(): Returns a reverse iterator. round(): Rounds a number to a given precision. set(): Returns a new set object. setattr(): Sets an attribute of an object. slice(): Returns a slice object. sorted(): Returns a new sorted list. staticmethod(): Converts a method into a static method. str(): Returns a string representation of an object. sum(): Sums items of an iterable. super(): Returns a proxy object that delegates method calls to a parent or sibling class. tuple(): Returns a new tuple. type(): Returns the type of an object or creates a new type. vars(): Returns the dict attribute of an object. zip(): Returns an iterator that aggregates elements from each of the iterables. __import__(): Invoked by the import statement.