FUNCATIONS:-
💥cmp(list1,list2)
👉It compares the elements of both of the list.
💥len(list1)
👉It is used to calculate the length of the list.
💥max(list)
👉It returns the maximum elements of the list.
💥min(list)
👉It returns the minimum elements of the list.
💥list(seq)
👉It converts any sequence to the list.
Examples:-
💥Len(list1)
◼Code-◼
L1=[1,2,3,4,5,6,7,8]
print(len(L1))
🟪Output-🟪
8
💥max(list)
◼Code-◼
L1=[11,22,33,44,55,66]
print(max(L1))
🟪Output🟪
66
💥min(list)
◼Code-◼
L1=[11,22,33,44,55,66]
print(max(L1))
🟪Output🟪
11
💥List(seq)
◼Code-◼
numbers = ["one","two","three","four"]
Number = sorted(numbers)
print(numbers)
🟪Output-🟪
["four","one","three","two"]
Create by:-
😎Ahir Veer😎
🙏Thanks for visit🙏