Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to reverse a list in python

lst = [1, 2, 3]
reversed_lst = reversed(lst)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #reverse #list #python
ADD COMMENT
Topic
Name
1+4 =