0

I've searched on the internet for a number of days even my Computer Science teacher is not sure how to do this.

I'm trying to make a game where you button for 10 seconds and then it kicks you out of input after 10 seconds. I've a number of methods but it doesn't seem to work.

maxtime=9.58

start_time = time.time()
z=input()
if time.time-start_time>max_time:
   distance=g.count('1')
   print("And he crosses the line with a distance of ",distance)
halfer
  • 18,701
  • 13
  • 79
  • 158

0 Answers0