Python Inbuilt Function
We have talked about Functions in Python. Functions in Python are classified as
* User-defined Functions
* Built-in Function
User-defined functions are the function developed the programmer to solve a particular task.
Built-in Functions are the functions that are already present in the system we don’t have to make built-in functions but just use them.
Here, we will discuss
String built-in functions
Math built-in functions
Date and Time built-in function
Random built-in function
These inbuilt function works on string data. All string methods return new values. They do not change the original string. Example: len(), upper(), lower(), isupper(), islower(), etc.
These inbuilt functions works on numeric data. All Math methods return new values. Example: abs(), floor(), ceil(), int(), float(), etc.
These inbuilt function help us to display date and time and related operations. Examples: now(), today(), day(), month(), year(), etc.
These inbuilt function help us to display random numbers and related operations. Examples: now(), today(), day(), month(), year(), etc.
are my favorite fruit”