Python Built in functions
#python list in-built functions
~ 1 - len
~ 2 - max
~ 3 - min
list1=[11,25,58,65,83,94]
list2=[23,35,46,87,91]
print(list1)
print(list2)
#len-to find length
print(len(list1))
print(len(list2))
#max-to find maximum value
print(max(list1))
print(max(list2))
#min-to find minimum value
print(min(list1))
print(min(list2))
#list(anysequence)-to convert any sequence to the list
str="Ram"
A=list(str)
print(A)
print(type(A))
print("\n\nthanks for visit my blog")
#OUTPUT OF THIS CODE
[11,25,58,65,83,94]
[23, 35, 46, 77, 87, 91]
6
5
93
87
25
['R,'a,'m,']
<class 'list'>
Thnks for visit my blog
Nice work bro
ReplyDeleteGood blog and much informative information and unique data
ReplyDeleteWell donee
ReplyDelete