You are on page 1of 1

the reverse function does not modify the original list but the reverse method does.

list.sort() sorts a list in-place (meaning that it modifies the original list) and
returns the value None. Therefore, it
won't work as expected in a list comprehension:

You might also like