I want something like this
x = [100, 20, 5 , 15]
y = # the subtraction of every number in x like 100 - 20 = 80; 80 - 5 = 75; 75 - 15 = 60
print(y)
Output : 60
How can we make it output 60 using the list x
There is a way to do it but instead of subtraction it adds numbers and it is
x = [50, 25, 25]
y = sum(x)
print(y)
it will print 100 but i want the oppsite of it