python substract code example Example: how to subtract in python minuend = 4 subtrahend = 2 print(minuend - subtrahend) # prints 2 because 4 - 2 is 2