Python TypeError: unsupported operand type(s) for -: 'str' and 'str'
<p>I am trying to convert the following code written in Python 2 to code that is compatible with Python 3. I am receiving the following error:</p>

<blockquote>
  <p>File "C:/Users/brand/AppData/Local/Programs/Python/Python35-32/Chââange Maker.py", </p>
  
  <p>line 5, in  CHANGE = MONEY - PRICE</p>
  
  <p>TypeError: unsupported operand type(s) for -: 'str' and 'str'</p>
</blockquote>

<p>Here is the code that I am using:</p>

<pre><code>PRICE = input("Price of item: ")
MONEY = input("Cash tendered: ")
CHANGE = MONEY - PRICE
print ("Change: ", CHANGE)
</code></pre>

<p><code>input</code> returns a string in Python 3</p>

<p>Also for money I would recommend <a href="https://docs.python.org/2/library/decimal.html" rel="nofollow"><code>decimal</code></a> due to <a href="https://docs.python.org/2/tutorial/floatingpoint.html" rel="nofollow"><code>float</code> lack of precision</a></p>

<pre><code>import decimal
price = decimal.Decimal(input("Price of item: "))
money = decimal.Decimal(input("Cash tendered: "))
change = money - price
print("Change: {change}".format(change=change))
</code></pre>

python