Skip to content
Timer for minutes and seconds
Profile icon
has Hacker Plan

This is a timer for minutes and seconds. The colors represent how much time you have.
Upvote if you liked it!

You are viewing a single comment. View All
Profile icon

hi, thanks so much, but I'm a noob to all this, so I had a question. I'm making a pretty simple guess the number game. I am using your code for the timer, and this is the guessing mechanic:
if usrChoice == number:
print ("good job! You win!")
elif usrChoice < number:
print ("too low")
elif usrChoice > number:
print ("too high")

how would I say to stop allowing answers when the time is up?

Profile icon

well if, you make a loop, you will break out of it once time is out.