
INTRODUCTION
Inbuilt functions are like Readymade materials available, We can take them and use them for our requirements
but we can’t change them since they are immutable
every builtin function will have their own operations
How many built in functions are there in python?
there are over 68 built-in functions available in python
Some of the commmonly used inbuilt functions are
Inbuilt Functions | Explanation |
---|---|
Print() | prints the particularly given object |
abs() | gives the absolute value of a number |
max() | largest of the given parameters |
min() | smallest in the given parameters |
pow() | gives the power of the given parameters |
range() | the sequence of numbers between the given start integer to the ending integer. |
round() | floating point into a specified number of decimal points |
slice() | it is used to slice a list, tuple, etc |
sum() | adds the given parameters and returns the added value |
type() | it will return what type of object or function it is with the parameters passed to it |
str() | it will return the converted string of the given object |
reversed() | it reverses the sequence of the given sequence |
property() | it will return the property of the attribute |
id() | returns the unique integer address of the object |
help() | Python has an inbuilt help system by using this help() function we can clear our doubts |
hex() | converts an integer into a respective hexadecimal number |
hash() | returns the hash value of the object |
bin() | converts given type into binary format and return value |
input() | gets input from the user and returns it |
open() | it is used to open a file and returns the file objects |
Can we create our own functions as per our convinience??
The answer is Yess
Python allows you to create your own functions at your own wish
those are called user-defined functions
want to know how to create them??
What are User defined functions ?
User-defined functions click here