Shallow and Deep Copies in Python

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

You build a three-by-three grid by multiplying a list containing one row of three zeros by three, and setting one cell changes a whole column. Explain why, and how copying works in Python.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →