Computer Science, asked by Divijyesta4264, 6 months ago

List A=[1,2,3,4,5] is given which of the following statement remove the middle element 3 from it to make it[1,2,4,5]

Answers

Answered by gaganadithyareddy9
5

Answer:

Hey! This is in python...

First of all the variable name 'List A' is invalid because it contains a space...

If the variable name is List_A, then....

>>> list_A = [1, 2, 3, 4, 5]

>>> list_A.remove(3)

>>> print(list_A)

[1, 2, 4, 5]

#HOPE THIS HELPS!!

Similar questions