Mutating a Shared List Argument

def add_item(cart):
    cart.append("apple")

my_cart = ["bread"]
add_item(my_cart)
print(my_cart)

What does this print?

A

NameError: name 'cart' is not defined outside the function

B

['bread', 'apple']

C

['bread']

D

['apple']