<｜begin▁of▁sentence｜>### Instruction:
Given a MultiDict instance, how can you add multiple values to the same key and then retrieve the list of all values associated with that key?
### Response:
from multidict import MultiDict

# Create a MultiDict object
d = MultiDict()

# Add a key-value pair to the MultiDict
d.add('spam', 'ham')
# Retrieve the value for 'spam'
print(d['spam'])

# Add another value to the same key
d.add('spam', 'eggs')
# Retrieve all values associated with 'spam'
print(d.getlist('spam'))
<|EOT|>
