Built-in Functions
- 1 The abs() built-in function of Python The built-in python function abs() returns the absolute value of the parameter which can be an integer, a real number or a complex number 16 Jan 2017
- 2 The all() built-in function of Python The Python built-in function all() returns True only if all elements of an iterable object evaluate to true or itebale object is empty. It returns False otherwise. 17 Jan 2017
- 3 The any() built-in function of python The built-in function any() in Python returns True when at least one of the elements of an iterable object evaluates to true. The function returns False otherwise. 17 Jan 2017
- 4 The ascii() built-in function of Python The ascii() built-in function returns a printable representation of an object. Through __repr__() it often returns an expression that can recreate the object. 18 Jan 2017
- 5 The bin() built-in function of Python The Python built-in function bin() converts an int object into a binary string which conforms to a valid Python expression. 18 Jan 2017
- 6 bool() function in Python The bool() function converts a python object into Boolean values True or False based on the python truth testing procedures 19 Jan 2017
- 7 bytearray() function in Python The bytearray() function is a constructor of the class bytearray and constructs bytearray objects. 1 Mar 2017
- 8 bytes() function in Python The bytes() function in Python is the constructor to the bytes class. It constructs and returns an immutable sequence of bytes. 2 Mar 2017
- 9 callable() fruncion in Python The callable() built-in function in Python determines whether an object is callable or not. It returns true if an object is callable; returns false otherwise. 2 Mar 2017
- 10 chr() function in Python The chr() function in Python converts a unicode code point into a string containing the corresponding character. 28 Feb 2017
- 11 classmethod() function in Python The classmethod() built-in function is used to make a method declared inside a class as a static method 3 Mar 2017
- 12 complex() function in Python The complex() function in Python constructs and returns an object of type complex - of the form x+iy, representing a complex number. 3 Mar 2017
- 13 dict() function in Python The dict() function in Python constructs and returns an object of type dict - which is a mapping type that holds a collection of name, value pairs 4 Mar 2017
- 14 dir() function in Python The dir() function lists the attributes of a Python Object. Attributes include both developer defined and the python implementation defined attributes. 4 Mar 2017
- 15 The enumerate() function in Python The built-in function enumerate() creates and returns an enumerate object from an iterable. When used in a for loop or when the __next__() method is called, the enumerate object returns an index and the element. 20 Jan 2023
- 16 The built-in function filter() in Python The filter() built-in function in Python returns an iterator that excludes the elements from the iterable for which the predicate function returns False. 21 Jan 2023
- 17 The built-in function float() in Python The built-in function float() returns a floating point value created from intger, floating point and string parameter values. 26 Jan 2023
- 18 globals() function in Python globals() function returns the module level symbol table containing attributes, classes, functions, variables and constants defined in the module 3 Mar 2017
- 19 hasattr function in python The built-in function hasattr() checks whether an attribute is part of an object. The function returns true if the attribute is present in an object. It returns false otherwise. 29 Jun 2021
- 20 hash() function in Python The hash() function returns the hash value of an object.The hash value helps in comparison of objects, storage and retrieval in containers like dict. 18 Jan 2017
- 21 hex() function in Python The hex() built-in function in Python converts an integer of decimal, octal and hexadecimal form into a string containing the hexadecimal form 28 Feb 2017
- 22 id() function in Python The built-in id() function in Python returns the unique id of an Object. Examples for the behaviour of id() function is given with output. 28 Feb 2017
- 23 Built-in functions of Python Python provides a set of built-in functions of fundamental nature which is needed in python environment very often 18 Jan 2017
- 24 isinstance() function in python The isinstance() built-in function checks whether an object is one of the given types. The function returns True for instances of direct, indirect and virtual subclasses. 15 Jul 2021
- 25 issubclass function in Python The function issubclass() checks whether a Python class is a subclass of a given base class. The python examples check a direct subclass, an indirect subclass and a virtual subclass are derived from given base classes. 13 Jul 2021
- 26 iter() function in Python The iter() function in Python returns an iterator from an iterable object. 18 Mar 2024
- 27 locals() function in Python The locals() function in Python returns the local symbol table of a function.The returned dictionary is a copy of the original symbol table. 3 Mar 2017
- 28 map() function in Python The map() function in Python makes it easy to apply a function on one or more Python iterables. It returns an iterator which upon using, executes the function using the mapped iterables passed to the map(). 9 Sep 2019
- 29 max() function in Python max() is a built-in function in Python. It accepts either one to many objects or a Python iterable from which the maximum value is to be found. The key parameter accepts a function to extract key from objects based on which maximum value is determined. The Python examples use both an iterable and a set of objects to find the maximum value from them. 9 Sep 2019
- 30 min() function in Python The min() built-in function in Python finds the minimum value from a set of parameters or from the elements of an iterable. The key parameter is used to extract the key in case of user defined objects. 9 Sep 2019
- 31 mod() function in python The mod() function returns the numeric value of a given unicode character. The Python example returns the numeric value of a katakana letter. 15 Jul 2021
- 32 oct() function in Python The python oct() function converts an integer of the form decimal, hexa-decimal, octal to a string containing the octal value of the integer 28 Feb 2017
- 33 open() built-in function in Python The open() function helps with opening files for reading from and writing to in binary and text formats. When reading and writing text data several supported encodings can be used. 3 Apr 2023
- 34 range() function in Python The range() function in Python is the constructor to the class range. Range objects represent immutable sequence of integers. 8 Mar 2017
- 35 The built-in function repr() in Python The repr() built-in function in Python returns the string representation of an object. The Python code example given here returns the string representation for few basic types and for an user defined type. 21 Jan 2023
- 36 reversed function in python The reversed() built-in function returns an iterator for a Python object that implements the Python sequence protocol. 28 Jun 2021
- 37 set() function in Python The built-in function set() in Python creates an unordered collection of non-duplicate elements representing the mathematical concept of set. 7 Mar 2017
- 38 The sum() built-in function in Python The python sum() function returns the sum of numbers present in an iterable object 28 Feb 2017
- 39 The tuple() built-in function in Python The tuple() built-in function in Python accepts any iterable object and creates a tuple out of it. The function exposed as a built-in function is actually the tuple() constructor. 18 Jan 2023
- 40 type() function in Python The type() function returns the type of a given Python object. The class of the returned instance that holds the type information is a class named type. 25 Dec 2022
- 41 zip function in Python The built-in function zip() creates an iterator of tuples from multiple Python iterables. The returned iterator upon execution produces tuples consisting of "i"th element from each of the input iterable. 10 Sep 2019