Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Dates and Times in Python 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
216,175 Points

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

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 67,990 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 ()?