Chapter 6: Problem 2
Consider these three statements. Do they change the printed value of A? $$ \begin{aligned} &A=[\text { "spam" }] \\ &B=A \\ &B[0]=\text { "shrubbery" } \end{aligned} $$
Short Answer
Expert verified
Yes, the printed value of A changes to ['shrubbery'].
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.