LearnPy Hub
← Lists problems
Medium

Differences Between Neighbours

Read a list of integers and print the differences a[i+1] − a[i] on one line (print nothing extra for a single number: an empty line).

Input

One line.

Output

One line.

Sample 1

Input
1 4 9 16
Output
3 5 7

Sample 2

Input
5 5 5
Output
0 0
solution.py
Output appears here
Differences Between Neighbours · Python practice problem · LearnPy Hub