Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHaifa Bassam
10,333 PointsTypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and 'builtin_function_or_method'
I run the program for questions quiz and everything was fine but when I entered the answer for the first question it showed me this error :
TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and 'builtin_function_or_method'
anyone can help me to solve it?
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsThe error implies you have a statement where a builtin function or method is used with a minus sign. Obviously you can not subtract one function from another. Perhaps you meant to subtract the results of two functions. Are you missing some parens ()?
Steven Parker
231,236 PointsSteven Parker
231,236 PointsShow your code and we can probably help find the issue.