remove element from array if particular string python code example
Example 1: python remove one element from array
array = ["red", "green", "blue"]
del array[0] # this deletes the first element, red, in the array
Example 2: how to remove a element from list in python and print it
pop(n) removes the element at the given index number and can print it