Adapted from https://docs.python.org/3/library/functions.html. Note that not all built-in functions are shown.
Built-in Function | Description |
---|---|
abs(x) |
Return the absolute value of a number. The argument may be an integer or a floating point number. |
all(iterable) |
Return True if all elements of the iterable are true (or if the iterable is empty). |
any(iterable) |
Return True if any element of the iterable is true. If the iterable is empty, return False . |
chr(i) |
Return the string representing a character whose Unicode code point is the integer i. For example, The valid range for the argument is from 0 through 1,114,111. |
divmod(a, b) |
Take two (non complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. For integers, the result is the same as (a // b, a % b) . |
|
Construct an iterator from those elements of iterable for which function returns True . iterable may be either a sequence, a container which supports iteration, or an iterator. |
id(object) |
Return the “identity” of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. |
input([prompt]) |
If the
|
|
Return True if the object argument is an instance of the classinfo argument, or of a subclass thereof. If object is not an object of the given type, the function always returns False . |
len(s) |
Return the length (the number of items) of an object. |
|
Return the largest item in an If one positional argument is provided, it should be an iterable. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned. There are two optional keyword-only arguments. The The |
|
Return the smallest item in an If one positional argument is provided, it should be an iterable. The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is returned. There are two optional keyword-only arguments. The The |
|
Open
|
ord(c) |
Given a string representing one Unicode character, return an integer representing the Unicode code point of that character. For example, ord('a') returns the integer 97 and ord('€') (Euro sign) returns 8364 . This is the inverse of chr() . |
|
Return base to the power exp ; if mod is present, return base to the power exp , modulo mod (computed more efficiently than pow(base, exp) % mod ). The two-argument form pow(base, exp) is equivalent to using the power operator: base ** exp . |
|
Print Both |
reversed(seq) |
Return a reverse iterator. |
|
Return For the built-in types supporting Any integer value is valid for ndigits (positive, zero, or negative). The return value is an integer if ndigits is omitted or None. Otherwise the return value has the same type as number. Note: The behavior of |
|
Return a new sorted list from the items in Has two optional arguments which must be specified as keyword arguments.
|
|
Sums start and the items of an iterable from left to right and returns the total. |
type(object) |
Return the type of an The |