Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

vreverse all elemetns of a list in place python

for index in range(len(numbers) // 2):
  pos = len(numbers) - index - 1
  numbers[index], numbers[pos] = numbers[pos], numbers[index]
 
PREVIOUS NEXT
Tagged: #vreverse #elemetns #list #place #python
ADD COMMENT
Topic
Name
4+9 =