- A string is a collection of alphabets, words, or other characters.
- .upper() - Converts all the letters in a string to Uppercase.
- .lower() - Converts all the letters in a string to Lowercase.
- .isupper() - Checks if all letters are in uppercase.
- .islower() - Check if all letters are lowercase.
- len() - Calculates the length of the given string.
- .index() - Used to iterate through each string letter.
- .replace() - Used to replace a letter using another in a string.
- abs() - Prints the absolute of given integer.
- max() - Prints the maximum value from the input stream.
- min() -Prints the minimum value from the input stream
- round() - It is used round a decimal number and print the result.
- bin() - It prints the binary equivalent to the given input.
- .swapcase() - swaps upper case to lower and lower case to upper.
- .capitalize() - returns a copy of the string with its first character in uppercase and the rest in lowercase.
- .split() - divides a string into a list of substrings based on a specified separator
- .join() - combines elements of an iterable (like a list) into a single string, interposed with a specified separator.
- .strip() - used to remove specified leading and trailing characters from a string. By default, it removes whitespace characters (such as spaces, tabs, and newlines) from both ends of the string.
- map() - applies a function to all items in an iterable
map(function,iterable)
- filter() - selects items from an iterable based on a function's condition.
Lambda Functions are anonymous functions. It can have any no of articles but only one expression.
All these functions can be used in python directly.But,there exist many other functions in python that requires importing in order to use it on Python.
Refer the example given below that is used to find the squareroot of a number
from math import *
print(sqrt(100))