[Solved] Python List : The different between the elements of a same list [closed]


If you want to subtract the first element with the rest,

Result = [abs(Nums[0] - item) for item in Nums[1:]]

solved Python List : The different between the elements of a same list [closed]