DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
itertools
>>> head, middle, tail = numbers[0], numbers[1:-1], numbers[-1] >>> head, *middle, tail = numbers
Source by treyhunner.com #
PREVIOUS
NEXT
Tagged:
#itertools
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit