Question

Which of the following statements about parameter passing in Python is TRUE?

A Python uses pass-by-value for all types of arguments.
B Mutable objects are passed by reference, and immutable objects are passed by value
C Python’s parameter passing mechanism is best described as “pass-by-object-reference.”
D Arguments passed to a function are copied into a new variable scope.
E A function cannot modify mutable arguments passed to it.
Practice Next

Hey! Ask a query