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

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
ClaudeCarrick

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!")
break
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?
thxxxxxxxxxxxx

Profile icon
littlepenguin

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