Computer Science, asked by neerajkapoor79936, 5 months ago

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 Anonymous
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 eccmcs
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