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 trial

Python Dates and Times in Python (2014) Let's Build a Timed Quiz App Taking The Quiz

Haifa Bassam
Haifa Bassam
10,333 Points

TypeError: 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?

Steven Parker
Steven Parker
231,269 Points

Show your code and we can probably help find the issue.

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,441 Points

The 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 ()?