Advertisement
dyeske

ccat

Oct 23rd, 2022
791
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. def ccat():
  2.     secs = (60 * 15)
  3.     questions = 50
  4.     qtime = (secs / questions)
  5.     # print "number of questions: " + str(questions)
  6.     # print "test time in minutes: " + str(secs / 60)
  7.     # print "seconds per question: " + str(qtime)
  8.  
  9.     count = 1
  10.     while True:
  11.         system_wrap("say " + str(count))
  12.         # print "question " + str(count)
  13.         for i in range(1, qtime):
  14.             # print str(i)
  15.             time.sleep(1)
  16.         count += 1
  17.         if count > questions:
  18.             return
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement