write down the discription syntax and example with output for the list methods given below
a)append()
b)count()
c)index()
d) insert()
e)pop()
f)remove()
g)reverse()
h) sort()
I)extend()
Answers
Answered by
1
Answer:
listvariablename.append(element)
listvariablename.count(the element)
listvariablename.index(the element)
listvarablename.insert(index, obj)
listvarablename.pop(index)
listvarablename.remove(element)
listvarablename.reverse()
listvarablename.sort() this is for ascending order
listvarablename.sort(reverse=true) for descending order
listvarablename.extend(list of elemnts to be added)
Similar questions