Question

How to reverse a list in Python?


Annonce
Ad

Answer

Use the method reverse() :
newList = List.reverse()


[source]
# ID Query