How does Python pass arguments to functions?
- A Always by value
- B Always by reference
- C By object reference: mutations are visible to the caller but rebinding is not
- D By pointer arithmetic
Answer
By object reference: mutations are visible to the caller but rebinding is not
Appending to a passed list affects the caller. Reassigning the parameter to a new list only changes the local name.





