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.
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
You should read it
May be interested
- Hex () function in Pythonthe hex () function is one of python's built-in functions, used to convert an integer into the corresponding hexadecimal form.
- The iter () function in Pythoncontinuing 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 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 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 Pythonthe 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 Pythonfrozenset () is a built-in function in python, receiving input as an iterable object and returning the frozenset object unchanged.
- Inheritance (Inheritance) in Pythoninheriting 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 returns the __dict__ attribute of the passed object if the object has the __dict__ attribute.
- How to use Closure in Pythonin 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 Pythonhow is the syntax of len () function, what parameters do it have and how is it used? invites you to read the track.