Ask coding questions

← Back to all posts
Run it and you can see it goes too fast. Can anyone help?
Kookiez

Run it and you can see it goes too fast. Can anyone help? (It is a timer)

Answered by ETHANTHOMAS9 [earned 5 cycles]
View Answer
Voters
Kookiez
ETHANTHOMAS9
Comments
hotnewtop
ETHANTHOMAS9

I think I fixed your timer

timeLoop = start
while timeLoop:

you put the time.sleep function outside the while loop so it didn´t use it. I also put the if statement for the minutes inside the while loop.

Kookiez

@ETHANTHOMAS9 Yes, but when you're supposed to press y, it doesn't start.

ETHANTHOMAS9

@OrangeJooce123 On yours or mine? on yours the "press any key to begin" part was working and on mine, it works too. this only the timer section of mine .if you want me to send you a link to all of my improvements I can..

Kookiez

@ETHANTHOMAS9 yeah, mine doesn't work even tho i tried your code. And plz send me the link.

ETHANTHOMAS9

@OrangeJooce123 k
here it is: https://repl.it/@ETHANTHOMAS9/Timer
and all I did was modify your code to get it to work. (thats why your comments are still there)

Kookiez
HackermonDev

You have a while loop there but a while loop doesn't run every second, it runs every millisecond

Kookiez

@PDanielY Where is it?

HackermonDev