abs | Absolute value of input number |
all | to check all elements of iterable for True of False |
any | to check any elements of iterable for True of False |
ascii | Printable chars in the object |
bin | Converting integer to Binary |
bool | Return True or False based on input object |
breakpoint | Stop execution for debugging |
bytearray | mutable array of bytearray |
bytes | Return bytes object |
callable | Checking if object is Callable or not |
chr | Unicode pint value to get Char |
classmethod | a class method for the function |
compile | code object from AST or source String |
complex | Complex number with real & imaginary parts |
copyright | Display coyright constant value |
credits | Display credit constant value |
delattr | Deleting attribute of an object |
dict | Dictionary object |
dir | list of attributes and methods |
display | display objects in frontend |
divmod | quotient and remainder of two input numbers |
enumerate | Adding incremental counter to iterable object |
eval | Dynamic evalution of python code |
exec | Dynamic execution of code |
filter | Filter out elements of an iterable |
float | Converting string to float dtype |
format | Formatting outputs |
frozenset | Making elements of iterable object to immutable |
get_ipython | |
getattr | Getting value of the attribute |
globals | Dictionary of global symbol table |
hasattr | Checking the attribute |
hash | hash value of object |
help | built-in help document system |
hex | Hex string from input number |
id | Identity of the object |
input | Input box for user data entry |
int | String or number to Integer |
isinstance | Checking if object is instance of a class |
issubclass | Checking if class is subclass or input class or not |
iter | Creating iterator object |
len | Number of elements present in an iterable or string |
license | Display license constant value |
list | mutable object with elements |
locals | dictionary of symbol table |
map | apply function to each element of iterables |
max | Maximum value of the iterable or string or series |
memoryview | |
min | Minimum value of the iterable or string or series |
next | Next element of an iterator |
object | Object as function |
oct | Octal string from input number |
open | Read a file |
ord | Unicode point value of the input char |
pow | x to the power of y |
Returning the object to screen or file | |
property | |
range | Sequence of numbers |
repr | Unambiguous string representation of an object |
reversed | Returns a reversed iterator |
round | Rounded value of a number |
set | Unordered and unindexed list |
setattr | Add / update value of attribute |
slice | breaking list, tuple, string etc by using slice object |
sorted | New sorted list from an iterable |
staticmethod | static method for a given function |
str | Converting object to string |
sum | sum of elements of an iterater |
super | to access methods of base class |
tuple | immutable object with elements |
type | Data type of the object |
vars | the __dict__ attribute of the object |
zip | iterator object by using different iterables |
import builtins
for i in dir(builtins):
print(i)
print("Total Builtin Functions : ",len(dir(builtins)))
Based on the version of Python we are using the number of Builtin functions will varry.
Total Builtin Functions : 158
import builtins
if 'sum' in dir(builtins):
print(' sum is a built-in function' )
else:
print(' No it is not a built-in function')
Output
sum is a built-in function
#int=225 # this line will override the built-in function int()
x=int(input('Enter a number : '))
print(x*2)
Reserved words as variables are not allowed (error ) but Built-in function we can use.
#True=50 # reserved words as variables are not allowed
x=sum([5,7]) # sum is a built-in function
sum=50 # Use of Built-in functions as variables allowed
#x=sum([6,7])
print(sum)
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.