Question: ```
y = [1, 3, 2, 4]
x = y.sort()
print(x)

```

x is `None`. How come this sort of syntax works in, for example, Javascript, and not Python?

Answer: 
`sort` (and `reverse`) change the list in-place.

If you want, you can use `sorted`:

```py
x = sorted(y)

```

This is explained in the section [Data Structures](https://docs.python.org/3/tutorial/datastructures.html) in the documentation.
Because `sort()` is an operation that is executed in place (it doesn't need to be re-assigned). It returns `None`, just like `append()`, `extend()`, and other list methods.