DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit