Python Functions ....
Saravanan B
Posted on March 3, 2022
Function 1:
len() -> This function is used to find the length of string.
string_name = ("Hello")
print(len(string_name))
Output : 5
This function will not execute int or float values.
Round -> As the name suggest it round the floating point values.
If value>0.5 = 1
else value < 0.5 = 0
Example:
1.6 is return as 2
1.1 is return as 1.
Lower() -> "Dev".lower()then it return "dev"
Count -> "Dev".count("e") then it count and return 1.
💖 💪 🙅 🚩
Saravanan B
Posted on March 3, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.