Published Jul 30, 2021Updated Sep 9, 2021
Contribute to Docs
The Python interpreter has a set of functions and types built into it (pre-defined). They are always ready at your disposal; you can use them without needing to import a library.
There are 68 built-in functions and they are listed here in alphabetical order.
- Returns the absolute value of a numeric argument.
- Returns True if every item in an iterable evaluates to True, otherwise, it returns False.
- Takes in an iterable object such as a list or tuple and returns True if any of the elements in the iterable are True. If none of the elements in the iterable are True, returns False.
- Receives as input an object containing string data, and returns the object as a printable representation with escapes for non-ASCII characters (accented characters).
- Converts an integer into its binary equivalent string.
- Converts a value to a Boolean True or False value.
- Engages, configures, and changes the debugger program used in a script.
- Returns an array of the given bytes of an object.
- Returns a byte immutable object representing the given bytes of an object.
- Returns True if an object is callable, and False if an object is not callable.
- Returns Unicode characters represented by integers ranging between 0 and 1,114,111.
- Converts a given function into a class method.
- Returns a runnable code object created from a string.
- Converts a given string into a complex number.
- Allows the user to delete attributes from an object.
- Initializes a new dictionary from mapping n-number of object (key, value) pairs.
- Returns the quotient and remainder of the division of two numbers.
- Returns a list of tuples containing an index and an element for each of the elements in an iterator.
- Returns the value of a Python expression passed as a string.
- Returns a filter object that applies a function to each item in an iterable and returns the values that are True.
- Returns a float value based on a string, numeric data type, or no value at all.
- Returns a new frozenset using an optional iterable object such as a string or list.
- Returns the value of the named property in the specified object.
- Returns True if an object has an attribute and False otherwise.
- Displays documentation of an object using the Python help utility.
- Converts an integer number to a lowercase hexadecimal string.
- Prompts the user for data and returns it as a string.
- Takes in a value that can be converted into an integer, and returns a copy of the value in the int datatype.
- Returns True if the given object is the specified type. Otherwise the function will return False.
- Returns True if a given class is a subclass of one or more classes.
- Returns the length of an object, which can either be a sequence or collection.
- Returns a list from an iterable.
- Returns an iterator that takes a function and applies it to every item in an iterable.
- Returns the highest value from values given or an iterable.
- Returns the lowest value from values given or an iterable.
- Returns the next element from an iterable object.
- Used to get an octal value of an integer number
- Used for opening files in a Python program.
- Returns the integer that represents the Unicode character argument.
- Returns the value of a base number x to the power of an exponent y, with an optional modulus z.
- Prints the string representation of an object.
- Returns a sequence of numbers based on the given range
- Returns a printable string describing the object that is passed in.
- Takes in an iterator object, such as a list or string, and returns a reversed iterator object.
- Takes a number and an integer as parameters, and returns the number with decimal places equal to the integer.
- Returns a new set based on an optional iterable object such as a list.
- Takes in an iterator object, such as a list, tuple, dictionary, set, or string, and sorts it according to a parameter.
- Takes in a value that can be converted into a string, and returns a copy of the value in the string datatype.
- Returns a temporary object that allows a given class to inherit the methods and properties of a parent or sibling class.
- Creates a new tuple.
- Returns the data type of the argument passed to the function.
- Takes multiple iterators as input and returns a single zip object made up of a list of tuples.
- Anonymous contributorAnonymous contributor3077 contributions
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Python on Codecademy
Computer ScienceLooking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
Includes 6 Courses
With Professional Certification