The usual way to swap values in a list is to use a temporary variable.

```
temp = l[i]
l[i] = l[j]
l[j] = temp

```

But in python you can do this:

```
l[i], l[j] = l[j], l[i]

```

How does this second method work? Is it the exact same process? Does it use less / more memory?