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 trialJulie Pham
12,290 PointsWhy we need log the start_time and end_time in ask method?
Why we need log the start time and end time in ask method while we already have log the start time and end time in take_quiz method?
3 Answers
Hanley Chan
27,771 PointsHi,
The time logged in the ask method should be for the time used for each question and the take_quiz method should be the time for the whole quiz.
Jason Whitaker
12,252 PointsIf a person wanted to access those variable how would they do it? ask.start_time, ask.end_time?
Harrison White
Python Development Techdegree Student 2,789 PointsI think having those variables would be useful if you decided to work on one of his suggestions -> to give the time it took to answer each question. However, it definitely added unnecessary complication to the original challenge. Especially when you are trying to figure out how you're supposed to use those variables when you're working on it.
Jason Whitaker
12,252 PointsJason Whitaker
12,252 PointsYes, but they are unused. I was able to comment them out and the the script runs just fine. I did have to change to use True instead of [0] as in the original file.