I'm trying to take the first number from a list and use it as my initial value. When I started doing subtraction, I realized that you actually don't start at 0 as you do with adding number, but you start with first number written in 'for'.
For example, when you add 0+4+5, then 4+5 is actually the same thing; when subtracting, it's different to do 0-4-5 and 4-5. I'm just starting with Python and programming in general, so I'm wondering if this is even possible.
My code:
print ("You chose subtraction.")
b = int(input("Enter how many numbers you want to substract."))
c = [int (input( "Number: ")) for _ in range (b)]
result = functools.reduce(operator.sub, c, INIT_VALUE)
print("Your answer is:", result)