Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

Python Function Name

The document provides a comprehensive list of Python built-in functions along with their descriptions. Each function is briefly explained, detailing its purpose and usage in Python programming. This serves as a quick reference guide for developers to understand the functionality of various Python functions.

Uploaded by

sudeshnabbs
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python Function Name

The document provides a comprehensive list of Python built-in functions along with their descriptions. Each function is briefly explained, detailing its purpose and usage in Python programming. This serves as a quick reference guide for developers to understand the functionality of various Python functions.

Uploaded by

sudeshnabbs
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Function Name Description

Python abs()
Return the absolute value of a number
Function

Python aiter() It takes an asynchronous iterable as an argument and


Function returns an asynchronous iterator for that iterable

Return true if all the elements of a given iterable( List,


Python all() Function
Dictionary, Tuple, set, etc) are True else it returns False

Returns true if any of the elements of a given


Python any()
iterable( List, Dictionary, Tuple, set, etc) are True else it
Function
returns False

Python anext() used for getting the next item from an asynchronous
Function iterator

Python ascii() Returns a string containing a printable representation of


Function an object

Python bin()
Convert integer to a binary string
Function

Python bool() Return or convert a value to a Boolean value i.e., True


Function or False

Python breakpoint() It is used for dropping into the debugger at the call site
Function during runtime for debugging purposes

Python bytearray() Returns a byte array object which is an array of given


Function bytes

Python bytes() Converts an object to an immutable byte-represented


Function object of a given size and data

Python callable() Returns True if the object passed appears to be


Function callable

Python chr() Returns a string representing a character whose


Function Unicode code point is an integer
Function Name Description

Python
classmethod() Returns a class method for a given function
Function

Python compile()
Returns a Python code object
Function

Python complex()
Creates Complex Number
Function

Python delattr()
Delete the named attribute from the object
Function

Python dict()
Creates a Python Dictionary
Function

Python dir() Returns a list of the attributes and methods of any


Function object

Python divmod() Takes two numbers and returns a pair of numbers


Function consisting of their quotient and remainder

Python enumerate() Adds a counter to an iterable and returns it in a form of


Function enumerating object

Python eval() Parses the expression passed to it and runs Python


Function expression(code) within the program

Python exec()
Used for the dynamic execution of the program
Function

Filters the given sequence with the help of a function


Python filter()
that tests each element in the sequence to be true or
Function
not

Python float() Return a floating-point number from a number or a


Function string

Python format() Formats a specified value


Function Name Description

Function

Python frozenset()
Returns immutable frozenset
Function

Python getattr()
Access the attribute value of an object
Function

Python globals()
Returns the dictionary of the current global symbol table
Function

Python hasattr() Check if an object has the given named attribute and
Function return true if present

Python hash()
Encode the data into an unrecognizable value
Function

Python help() Display the documentation of modules, functions,


Function classes, keywords, etc

Python hex() Convert an integer number into its corresponding


Function hexadecimal form

Python id() Function Return the identity of an object

Python input()
Take input from the user as a string
Function

Python int()
Converts a number in a given base to decimal
Function

Python isinstance()
Checks if the objects belong to a certain class or not
Function

Python issubclass()
Check if a class is a subclass of another class or not
Function

Python iter() Convert an iterable to an iterator


Function Name Description

Function

Python len()
Returns the length of the object
Function

Python list()
Creates a list in Python
Function

Python locals()
Returns the dictionary of the current local symbol table
Function

Returns a map object(which is an iterator) of the results


Python map()
after applying the given function to each item of a given
Function
iterable

Python max() Returns the largest item in an iterable or the largest of


Function two or more arguments

Python
memoryview() Returns memory view of an argument
Function

Python min() Returns the smallest item in an iterable or the smallest


Function of two or more arguments

Python next()
Receives the next item from the iterator
Function

Python object()
Returns a new object
Function

Python oct() returns an octal representation of an integer in a string


Function format.

Python open()
Open a file and return its object
Function

Python ord() Returns the Unicode equivalence of the passed


Function argument
Function Name Description

Python pow()
Compute the power of a number
Function

Python print()
Print output to the console
Function

Python property()
Create a property of a class
Function

Python range()
Generate a sequence of numbers
Function

Python repr()
Return the printable version of the object
Function

Python reversed() Returns an iterator that accesses the given sequence in


Function the reverse order

Python round() Rounds off to the given number of digits and returns the
Function floating-point number

Python set() Convert any of the iterable to a sequence of iterable


Function elements with distinct elements

Python setattr()
Assign the object attribute its value
Function

Python slice()
Returns a slice object
Function

Python sorted() Returns a list with the elements in a sorted manner,


Function without modifying the original sequence

Python
staticmethod() Converts a message into the static message
Function

Python str()
Returns the string version of the object
Function
Function Name Description

Python sum()
Sums up the numbers in the list
Function

Python super()
Returns a temporary object of the superclass
Function

Python tuple()
Creates a tuple in Python
Function

Python type()
Returns the type of the object
Function

Python vars() Returns the __dict__ attribute for a module, class,


Function instance, or any other object

Python zip()
Maps the similar index of multiple containers
Function

Python __import__()
Imports the module during runtime
Function

You might also like