Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get next element while looping

arr = [1,2,3,4]
arr = iter(arr)

for x in arr:
  print(x, next(arr))
 
PREVIOUS NEXT
Tagged: #element #looping
ADD COMMENT
Topic
Name
9+9 =