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
 
PREVIOUS NEXT
Tagged: #list #reverse #method #python
ADD COMMENT
Topic
Name
1+8 =