compare list elements
<p>How can I compare one element with the next one in a sorted list, and print out their differences. Any help would be appreciated.</p>

<pre><code>Eg: 
lst = [3.18,10.57,14.95,...]
10.57 - 3.18 =  7.39
14.95 - 10.57 = 4.38
...
</code></pre>
