Python Developer — Medium
Key points
- Assigning a list to another variable creates a reference, not a copy
- Modifying one variable affects the other due to shared memory
- Appending to y also appends to x in this scenario
Ready to go further?
Related questions
