Built-in Python functions

In the previous article, you learned that Python has a basic function type, one is a built-in function, two are user-defined functions. Today, we will learn about a list of Python's built-in functions.

Python interpreter has a number of functions available to use. These functions are called integrated functions. For example, print() is a function that prints the values ​​provided to the function to the screen, the list() function creates a list in Python,

In Python 3.6 there are 68 Python functions built-in. Below is a list of those functions, along with a brief description of them. You can bookmark again to check it quickly when needed.

Press Ctrl + F on the browser and enter the name of the function you want to find, if you want to find it quickly.

Description function abs () Returns the absolute value of some all () Returns true when all iterable elements are true any () Tests any element of iterable as True ascii () Returns string contains a representation that can be printed in bin () Convert integers to a binary string bool () Returns a value to Boolean bytearray () Returns the byte size array provided bytes () Returns a constant byte object callable () Check if the object can call chr () Returns a character (a string) from Integer classmethod () Returns a method class for the compile () function Returns the Python code object complex () Create complex number delattr () Delete property from the dict () object Create Dictionary dir () Returns the property of the divmod object () Returns a Tuple of the Quotient and Remainder enumerate () Returns v object declared eval () Run Python code in exec () Execute the program created dynamically filter () Build iterator from True elements float () Returns decimal from number, format string () Returns about representation formatted of the value frozenset () Returns the object frozenset does not change getattr () Returns the named attribute value of the globals object () Returns the dictionary of the current global sumbol table hasattr () Returns the object even if the property is named or not hash () Returns the hash value of the help object () Calls the Help System with hex () converts Integer to Hexadecimal id () Returns the identifier of the object input () icon Read and return the string in an int line () Returns an integer from the number or isinstance string () Check if the object There is an Instance of Class not issubclass () Check if the object is a Subclass of Class not iter () Returns the iterator for the len object () Returns the length of the list object () Create list in Python locals () Returns the dictionary of the current local sumbol table map () Applies the function and returns a max list () Returns the largest element memoryview () Returns the memory view of the argument min () Returns the element smallest next () Extract the next element from Iterator object () Create an object that does not have (Featureless Object) oct () Convert integer to octal open () Returns object File ord () Returns Unicode code for pow Unicode characters () Returns x exponent y print () Print the provided object property () Returns property range property () Returns the integer string from the start number to the ending number ramming repr () Returns the printable representation of the reversed object () Returns the reverse iterator of a round () Rounds the set decimal () Creates a set of new elements setattr () Set a value for a attribute of slice object () Cut the specified object by range () sorted () Returns the sorted list staticmethod () Create static method from a function str () Returns an unofficial representation of an object sum () Add an entry to Iterable super () Allow reference to Parent Class by super tuple () Function Create a Tuple type () Return object type vars () Returns __dict__ attribute of class zip () Returns Tuple __import __ () iterator The advanced function, called by import

In the future, I will try to write a detailed article about these functions so that you understand the syntax, as well as the usage of each function.

If you want to know what this particular function does, there's an argument, you just need to enter the command:

 print(ten_ham.__doc__) 

Python will explain quite well about the function, you can read and do some examples to understand that function.

Don't forget to do Python exercises!

Next article: Python function is defined by the user

Last lesson: Python functions

5 ★ | 1 Vote

May be interested

  • Hex () function in PythonHex () function in Python
    the hex () function is one of python's built-in functions, used to convert an integer into the corresponding hexadecimal form.
  • The iter () function in PythonThe iter () function in Python
    continuing with the topic of python's built-in functions, the article will introduce you to the iter () function with the syntax, usage as well as specific examples. invites you to read the track.
  • The float () function in PythonThe float () function in Python
    the float () function in python converts the value specified to a floating-point number. how does the float () function have a syntax, what parameters do you have, how can you find out in this article with quantrimang?
  • The pow () function in PythonThe pow () function in Python
    the pow () function built into python returns the value of x with the power of y (xy). if there is a third parameter, the function returns x to the power y, the module z.
  • Function open () in PythonFunction open () in Python
    the open () function is built into python to use to open a file and return the corresponding file object. follow the article to learn more about the syntax, parameters and usage of open ()
  • The function frozenset () in PythonThe function frozenset () in Python
    frozenset () is a built-in function in python, receiving input as an iterable object and returning the frozenset object unchanged.
  • Inheritance (Inheritance) in PythonInheritance (Inheritance) in Python
    inheriting in object-oriented programming allows us to declare new classes to re-use the parent class's functions and attributes and extra functions. in this article, we will learn how to use legacy in python.
  • The vars () function in PythonThe vars () function in Python
    the vars () function in python returns the __dict__ attribute of the passed object if the object has the __dict__ attribute.
  • How to use Closure in PythonHow to use Closure in Python
    in this article, tipsmake.com will work with you to learn about closure in python, how to define a closure and why you should use it. let's go find the answer!
  • Wool () function in PythonWool () function in Python
    how is the syntax of len () function, what parameters do it have and how is it used? invites you to read the track.