Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

invert list python


# Making a new list
myList = [1,2,3,4]
# Inverting the list
myList = myList[::-1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #invert #list #python
ADD COMMENT
Topic
Name
1+7 =