How to fix "unsupported operand type(s)" in Python?
<pre><code>total=0
output=("enter next sales value")
sales=input
total_sales=total+sales
</code></pre>

<p>I keep getting this error:</p>

<blockquote>
  <p>Traceback (most recent call last):   File "python", line 4, in  TypeError: unsupported operand type(s) for +: 'int' and 'builtin_function_or_method'</p>
</blockquote>

<p>You must use input() instead of input.
Moreover in python 3, the input() function returns a string, not an integer. So to use the return value in an addition, you must indicate it as an integer:  </p>

<pre><code>    sales = input("Enter next sales value")
    total_sales = total + int(sales)
</code></pre>

python runtime-error