How many built-in functions are there in python ?
There are a lot of built in functions in python as compared to other programming languages which make it do more in less code.
what is a library function?
A Library is collection of built-in functions which are ready to use functions with a specific behavior. We can use these functions as per our need in any of our program to make some complex codes easier.
In short, Built-in functions are also reffered as library functions.
What are ___....___ functions?
In Python we use some library functions which starts and end with Double-Underscore(__). These types of names are given to built-in functions in python only to avoid conflict between built-in functions and user defined function names.
How to define a function in python ?
To define a Function on your own you need to take care of following :
- Give your function a name followed by def keyword with trailing parenthesis ‘ ()’
- The arguments required to call your function must be specified within this parenthesis
- After parenthesis you’ve to place a colon(:) which starts the body of your function where you write the whole logic to be performed by function