Skip to content
Sign UpLog In
Profile icon

litlag1

@litlag1
https://scratch.mit.edu/users/AkshG/
Repls
Community
litlag1
litlag1
shared a Post
2 years ago
timer
This is a tinmer timer timer timer timer timer
YouthfulFoolishDeletion
Python
ChAoTiCChAoSThEGrEaT
ChAoTiCChAoSThEGrEaT
Just a suggestion you should clear after every second passes For example import time,os print("This is the timer") start = input("Would you like to begin Timing? (y/n): ") if start == "y": timeLoop = True Sec = 0 Min = 0 timeLoop = start while timeLoop: Sec += 1 print(str(Min) + " Mins " + str(Sec) + " Sec ") time.sleep(1) os.system('clear') if Sec == 60: Sec = 0 Min += 1 print(str(Min) + " Minute") `2 years ago