How many inbuilt functions are there in python?

Python built-in functions are those functions whose functionality is pre-defined in Python. Python 3 comes with many built-in functions that you can readily use in any Python program.

In this article, you will be familiar with all the available Python built-in functions. Each of the functions is explained with examples in separate pages.

For example, there is min[] function which returns the minimum value of the given iterable. These functions make the life of a programmer easier as many codes and task have already been defined in these functions.

If you want to learn Python, you may also like:

  • Learn Python [A-Z] – Interactive guide with examples

Python 3, there are 68 built-in functions.

Here is the list of Python built-in functions in alphabetical order.

Python built-in methods with description

__import__[ ]
This is an advanced function which is invoked when we use the import statement.
abs[ ]
Returns the absolute value of a number. If the argument is a complex number, its magnitude is returned.
all[ ]
Returns True if all elements of the iterable are true or if the iterable is empty.
any[iterable]
Returns True if any element of the iterable is true.
ascii[ ]
It returns printable version of string ‘str’.
bin[ ]
Converts an integer number to a binary string.
bool[ ]
Converts a value to a Boolean, using the standard truth testing procedure.
bytearray[ ]
Returns an array of given byte size. The bytearray type is a mutable sequence of integers in the range 0

Chủ Đề