#list in-built functions In python 







> 1 - len




> 2 - max




> 3 - min 












list1=[10,20,30,40,50]



list2=[11,22,33,44,55,66,77]



print(list1)



print(list2)







#len-to find length of the string








print(len(list1))



print(len(list2))







#max-to find maximum value from the list








print(max(list1))



print(max(list2))







#min-to find minimum value from the list







print(min(list1))



print(min(list2))







#list(anysequence)-to convert any sequence to the list








str="Dharmesh"



x=list(str)



print(x)



print(type(x))







print("\n\nTHANKS FOR VISIT THIS BLOG ")











#OUTPUT OF THIS CODE












[10,20,30,40,50]



[11,22,33,44,55,66,77]


5




7



50



77



10



11



['D', 'h','a', 'r', 'm', 'e', 's', 'h']



<class 'list'>











                THANKS FOR VISIT THIS BLOG

Comments

Post a Comment

Popular posts from this blog

How To Link Aadhaar With Voter ID

Crud