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
201,913 Points

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

Chris Freeman
Chris Freeman
Treehouse Moderator 59,678 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 ()?