Write the most appropriate function to perform the following tasks.
a Delete a given element from the list.
b Add an element in the end of list.
c Remove all items from the list
To display the length of the list
Answers
Answered by
2
Answer:
a)
list1=['a' ,'b','c' ,'d' ,'e']
list1.remove()
b)
list2=['Ankit', 'loves']
list2.append('Jahnavi')
c)
list3=['blah','blah','blah','blah']
list3.clear()
d)
list=['Ankit','loves', 'Jahnavi']
print(len(list))
Answered by
0
Answer:
AYOOOO!!! DEEEEZZZZ EZZZZZZZZZ
Explanation:
a)
list1=['a' ,'b','c' ,'d' ,'e']
list1.remove()
b)
list2=['Ankit', 'loves']
list2.append('Jahnavi')
c)
list3=['blah','blah','blah','blah']
list3.clear()
d)
list=['Ankit','loves', 'Jahnavi']
print(len(list))
SEEEE DEEZZZZ EZZZZ!!!!
Similar questions