>>> help(remove)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'remove' is not defined
>>> help(discard)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'discard' is not defined
>>> a = [1,2,3]
>>> a.remove(1)
>>> a
[2, 3]
>>> a.discard(2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'discard'
>>> a = {1,2,3}
>>> a.remove(1)
>>> a
{2, 3}
>>> a.discard(2)
>>> a
{3}
>>> a.remove(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 1
>>> a.discard(1)
>>>