Python Dates and Times in Python Let's Build a Timed Quiz App The Quiz Class

The meaning of question.start and question.end in ask(question)?

Why do we need question.start and question.end in the ask() method? I mean they seem to be pointless...

1 Answer

Emil Rais
Emil Rais
26,819 Points

I believe they are there to measure how long it takes to answer the question.

Like:

elapsedTime = question.end - question.start