Since Python is a "time-effective" or "time-efficient" language. That is why, Python provides a lot of built-in functions that are pre-defined and can be used in the program to save a lot of time in doing the task.
Note - Each and every built-in functions defined here, includes at least one example program. Programs provided as example, are well-tested and executed.
Here are the list of built-in functions available in Python. If you want to learn any particular built-in function, then click on that function, otherwise continue following the Next Function button given below, for each built-in function article, to learn all built-in functions, one by one.
For example, let's suppose we need a code in Python, to convert decimal to binary. Therefore, to save our time in writing unwanted number of statements, just use bin() function to do the job, as shown in the example given below:
x = 2454 b = bin(x) print(b)
The output is:
As you can see, the decimal number stored in x, is directly converted into its equivalent binary value using, of course, the function bin(). Imagine how much of your time is saved to write self-defined code to do the same task.
One of my friend uses built-in functions, most of the time because of his slow typing speed. I mean seriously =D
One More Thing - Some built-in functions is necessary to learn such as print(), input(), read(), close() etc. to achieve its respective functions (works). Because, we can not create self-defined code for the task, these functions used for.
© Copyright 2021. All Rights Reserved.