def Diff(t):
 diffs = [(t[(i + 1)] - t[i]) for i in range((len(t) - 1))]
 return diffs

def Diff ( t ) : diffs = [ ( t [ ( i + 1 ) ] - t [ i ] ) for i in range ( ( len ( t ) - 1 ) ) ] return diffs
compute the differences between adjacent elements in a sequence .