How to Remove Specified Item From a List in Python


In this example we will show how to remove the specified item from a list in Python.

Source Code

my_list = ['a', 'b', 'c', 'd', 'e']
my_list.remove('c')
print(my_list)

Output:

['a', 'b', 'd', 'e']
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments