What is the syntax to remove a value from a list?

<list name>.remove(<value to be removed>)
#example
>>> letters = ['A','B','C','D','E','B']
>>> letters.remove('B')
>>> letters
['A', 'C', 'D', 'E', 'B']
Advertisements