I honestly just don't understand why this returns None and not a reverse list:
>>> l = range(10) >>> print l [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> print l.reverse() None
Why is this happening? According to the docs , I am not doing anything wrong.
python list reverse
Ryan saxe
source share