DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python difference between consecutive element in list
a = [0, 1, 2, 3] [x - a[i - 1] for i, x in enumerate(a)][1:]
PREVIOUS
NEXT
Tagged:
#python
#difference
#consecutive
#element
#list
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit