What does "TypeError: unsupported operand type(s) for +: 'function' and 'int'" mean?
Rob Gaddi
rgaddi at highlandtechnology.invalid
Mon Mar 25 15:35:09 EDT 2019
On 3/25/19 12:30 PM, CrazyVideoGamez wrote:
> I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and 'int'" means and I don't know how to fix it. Help!
>
It means you can't add (i.e. apply the + operator) a function to an int.
Which is only a problem because somewhere in your code, you're asking
it to do that. In all likelihood, if you follow the line number
provided in the traceback, you'll see that somewhere that you planned to
use the result of calling a function you left out the parentheses and
are instead using the function itself.
--
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order. See above to fix.
More information about the Python-list
mailing list