0
how can I find the difference between two adjant numbers in a list?
4 Answers
+ 11
lst = [3,2,1[
i = 0
print(lst[i]-lst[i+1])
+ 1
Also you need to check which is biggest first and subtract smallest from biggest.
0
Thanks, is there any built in function that can find the difference?
0
Thank you!!