What does "TypeError: unsupported operand type(s) for +: 'function' and 'int'" mean?

Dan Sommers 2QdxY4RzWzUUiLuE at potatochowder.com
Mon Mar 25 15:43:02 EDT 2019


On 3/25/19 2:30 PM, CrazyVideoGamez wrote:
> I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and 'int'" means

It means that you're trying to add an int to a function.

 > ... and I don't know how to fix it. Help!

Don't do that?

It's possible that with the correct context (copied and
pasted, not just retyped from memory), someone can help
you appropriately.

What version of Python are you using?  What program are
you running?  Is this homework?



More information about the Python-list mailing list