Python Built-In Functions - What are built in functions in Python

Last updated Feb 18, 2022

Python has set of predefined functions. Here we will see all list of functions.

abs

This built in function return the absolute value of a number.

all

This built in function return True if all items in an iterable object are true.

any

This built in function return True if any item in an iterable object is true.

ascii

This built in function return a readable version of an object.

bin

This built in function return the binary version of a number.

bool

This built in function return the boolean value of the specified object.

bytearray

This built in function return an array of bytes.

bytes

This built in function return a bytes object.

callable

This built in function return True if the specified object is callable.

chr

This built in function return a character from the specified Unicode code.

classmethod

This built in function convert a method into a class method.

compile

This built in function return the specified source as an object.

complex

This built in function return a complex number.

delattr

This built in function delete the specified attribute from the specified object.

dict

This built in function return a dictionary.

dir

This built in function return a list of the specified object's properties and methods.

divmod

This built in function return the quotient and the remainder when argument1 is divided by argument2.

enumerate

It takes a collection and return it as an enumerate object.

eval

This built in function evaluate and execute an expression.

exec

This built in function execute the specified code.

filter

It uses a filter function to exclude items in an iterable object.

float

This built in function return a floating point number.

format

It formats a specified value.

frozenset

This built in function return a frozenset object.

getattr

This built in function return the value of the specified attribute.

globals

This built in function return the current global symbol table as a dictionary.

hasattr

This built in function return True if the specified object has the specified attribute.

hash

This built in function return the hash value of a specified object.

help

It executes the built-in help system.

hex

This built in function convert a number into a hexadecimal value.

id

This built in function return the id of an object.

input

It is used for allowing user input.

int

This built in function return an integer number.

isinstance

This built in function return True if a specified object is an instance of a specified object.

issubclass

This built in function return True if a specified class is a subclass of a specified object.

iter

This built in function return an iterator object.

len

This built in function return the length of an object.

list

This built in function return a list.

locals

This built in function return an updated dictionary of the current local symbol table.

map

This built in function return the specified iterator with the specified function applied to each item.

max

This built in function return the largest item in an iterable.

memoryview

This built in function return a memory view object.

min

This built in function return the smallest item in an iterable.

next

This built in function return the next item in an iterable.

object

This built in function return a new object.

oct

This built in function convert a number into an octal.

open

This built in function return a file object.

ord

This built in function converts an integer representing the Unicode of the specified character.

pow

This built in function return the value of x to the power of y.

print

This built in function print to the standard output device.

property

It gets, sets, and deletes a property.

range

This built in function return a sequence of numbers starting from 0 and increments by 1.

repr

This built in function return a readable version of an object.

reversed

This built in function return a reversed iterator.

round

This built in function round a numbers.

set

This built in function return a new set object.

setattr

It sets an attribute of an object.

slice

This built in function return a slice object.

sorted

This built in function return a sorted list.

@staticmethod

It converts a method into a static method.

str

This built in function return a string object.

sum

This built in function sum the items of an iterator.

super

This built in function return an object that represents the parent class.

tuple

This built in function return a tuple.

type

This built in function return the type of an object.

vars

This built in function return the __dict__ property of an object.

zip

This built in function return an iterator from two or more iterators.

Article Contributed By :
https://www.rrtutors.com/site_assets/profile/assets/img/avataaars.svg

281 Views