L.reverse()
modifies L in place. As a general rule, Python builtin methods will either mutate or return something but not both
The usual way to reverse a list is to use
print L[::-1]
reversed(L)
returns a listreverseiterator object
which is fine for iterating over, but not so good if you really want a list
[::-1]
is just a normal slice - the step is -1
so you get a copy starting from the end and ending with the start