Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

# Mutation Mystery def deep_copy ( lst) : Returns a new list that is a deep copy of lst.

deep_copy

#Mutation Mysterydef deep_copy ( lst) :""Returns a new list that is a deep copy of lst.>>> x = [[0, 'a'], [1, 'b'], [2, 'c' ] ]>>> y = deep_copy (x)>>> y[0] [1] = 'z'>>> y[[O, 'z'], [1, 'b'], [2, 'c']]>>> X[[o, 'a'], [1, 'b'], [2, 'c']]>>> x = [[0, 'a'], [1, 'b'], [2, 'c'] ]>>> z = deep_copy (x)>>> z [0] [1] = 'z'>>> Z[[O, 'z'], [1, 'b'], [2, 'c']]>>> X#x should not change[[O, 'a'], [1, 'b'], [2, 'c']]IIIIII"xx* YOUR CODE HERE ***"
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question