Inbuilt functions are those which comes already in Python while installing Python on your machine. Either it comes in a module as a function or directly inside a main class of Python. Let’s get started, will look through some of the inbuilt functions. Though there arae so many will discuss few over here. One of the good and mostly used example is print() itselfIn [1]:
l1 = [1,2,3,4,5]

## Inbulit max function of Python
print(max(l1))

## Inbuilt min function of Python
print(min(l1))
5
1
In [2]:
## One example of absolute function. -> abs()
## Instead of printing -2, it will print "2" as it is taking absolute value.

print(abs(3-5))
2

Converting from one type to another type

In [3]:
a = 3

## Here it is working as an integer
## type() is also a inbuilt function -> It is used to check the type of that variable.

print(type(a))

## Now we converted it to string using str(), similarly we can do int() i.e, converting to integer etc.
## Though we try to convert 'some_string' to int() it will through an error definitely.

print(type(str(a)))
<class 'int'>
<class 'str'>

Some othet example of inbuilt functions are -:

  1. all() – returns true when all elements in iterable is true
  2. any() – Checks if any Element of an Iterable is True
  3. bool() etc.
For more functions you can refer Python documentation -: https://docs.python.org/3/library/functions.html Hope you understand the usage of inbuilt functions. In next blogs will discuss more about the inbuilt modules. Stay tuned!