Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to reverse a list in python

# reversing a list in Python
numbers = [1,2,3,4,5,6,7,8,9]
print(numbers[::-1])
 
PREVIOUS NEXT
Tagged: #reverse #list #python
ADD COMMENT
Topic
Name
3+9 =