Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list reverse method in python

l1 = [1, 8, 7, 2, 21, 15]

 l1.reverse() # reverses the list
  
  print(l1)
  
  #it will reverse the list
Source by dbader.org #
 
PREVIOUS NEXT
Tagged: #list #reverse #method #python
ADD COMMENT
Topic
Name
7+1 =