Week 4 Programming assignment #1 AssertionError

The reason is that the in-place operators manage memory differently. If you use those, you end up modifying the global data that was passed in. Here’s a thread which explains this in detail.

1 Like