Built in functions in Python.
Built in functions:
sum()
sum () function is used to add the all elements of list.
output:
len()
This method is used to find the length of given list.
output:
max()
This method is used to find the maximum value present in list.
output:
min()
This method is used to find the minimum value presentin the list.
output:
shuffle()
This method is used to shuffle the value present in the list. To used the memthod shuffle, we have to import module.
output:
join()
To join the individual characters of the list if it is a string. We can combined the character into long string.
output:
Comments
Post a Comment