List built-in functions
➡ CMP(list1,list2)(it compres the elements of both the list.)
➡len(list)(it is used to calculate the length of the list.)
➡max(list)(it returns the maximum element of the list.)
➡min(list)(it returns the minimum element of the list.)
List(seq)(it converts any sequence to the list)
PROGRAM CODE/OUTPUT
LEN
L1=[1,2,3,4,5,6,7,8]
PRINT(LEN(L1))
OUTPUT
ANS:8
MAX(LIST)
L1=[12,34,26,48,72]
PRINT(MAX(L1))
OUTPUT
ANS:72
MIN(LIST)
L1=[12,34,26,48,72]
PRINT(MIN(L1))
OUTPUT
ANS:12
LIST(SEQ)
STR="JOHNSON"
S=LIST(STR)
PRINT(TYPE(S))
OUTPUT
ANS:<CLASS LIST>
5 Comments
Nice blog helpful information
ReplyDeleteVery nice blog and helpful
ReplyDeleteNice blog
ReplyDeletePyrhon coding chhe ne
ReplyDeleteGood job Bhai....
ReplyDelete