Answers for "get reversed list python"

7

how to flip a list backwards in python

myList = [0,1,2,3,4,5]
myList.reverse()
print(myList)
#OR
print(myList[::-1])
Posted by: Guest on February-22-2020
8

reverse list python

list=[1,2,3]
list[::-1]
Posted by: Guest on May-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language