Sep-20-2017, 04:31 PM
hi, i got a list:
and there's probably a "trap" with how to get the "1" in the output?
any help?
my_list = [1,4,8,17,18,24]i want the output to be :
Output:1
3
4
9
1
6
i would like to print the result of number in index2 - number in index1 (4-1) , number in index3 - number in index2 (8-4), number in index4 - number in index3 (17-8) ... etcand there's probably a "trap" with how to get the "1" in the output?
any help?