Q. Discuss the working of copy() if

(i) The values are of immutable types,

(ii) The values are of mutable types.


Answer =

(i) If the values are immutable then changes are not reflected in the copies.
(ii) If the values are mutable then changes are reflected in the copies.

4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post