2. Subtraction Operator. In Python, scalar subtraction can be performed with the operator -
.
In the exercise below, start by defining two variables, a=7
and b=8
.
Next, subtract a
from b
, and assign the difference to a third variable, c
.
Finally, use the print()
function to print c
to the console.