Timing a quiz question

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 2076 Views - Last Post: 29 September 2012 - 03:14 PM Rate Topic: -----

#16 Simown  Icon User is offline

  • Blue Sprat
  • member icon

Reputation: 318
  • View blog
  • Posts: 650
  • Joined: 20-May 10

Re: Timing a quiz question

Posted 29 September 2012 - 04:48 AM

Just add "end" made in to a string with str() to the pieces of the string that surround it.

end = round(start - time.time(), 2)
print "you complete this quiz in " + str(end) + " amount of seconds."


Was This Post Helpful? 0
  • +
  • -

#17 Osbornezo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 28-September 12

Re: Timing a quiz question

Posted 29 September 2012 - 05:08 AM

View PostSimown, on 29 September 2012 - 04:48 AM, said:

Just add "end" made in to a string with str() to the pieces of the string that surround it.

end = round(start - time.time(), 2)
print "you complete this quiz in " + str(end) + " amount of seconds."

I was missing the +, great thank you very much :)
Was This Post Helpful? 0
  • +
  • -

#18 Osbornezo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 28-September 12

Re: Timing a quiz question

Posted 29 September 2012 - 03:14 PM

I have noticed something, it gives it in negatives, like you did this quiz in -243 seconds
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2