p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Operators I
Subtract two variables
Subtract two variables
Calculate the profit by subtracting the costs from revenue.
reset
revenue = 10 costs = 7
profit =
# expected result: 3 print(profit)
Python
Setting up Python environment...
Output