Introduction
- import os
- import time
- second = 0
- minute = 0
- hours = 0
- while(True):
- print("Simple Stopwatch(in Python) Created By Sourabh Somani...")
- print('\n\n\n\n\n\n\n')
- print('\t\t\t\t-------------')
- print('\t\t\t\t %d : %d : %d '%(hours,minute,second))
- print('\t\t\t\t-------------')
- time.sleep(1)
- second+=1
- if(second == 60):
- second = 0
- minute+=1
- if(minute == 60):
- minute = 0
- hour+=1;
- os.system('cls')


abc《Sachin Murari》Posted May 6, 2021, 12:10 PM
Sir please add Mili second command also and please update the image
Venkateswaran SPosted Feb 11, 2020, 4:42 AM
Is there any simple code to write these Program\
Shreyas GuptaPosted Aug 6, 2018, 9:15 PM
What does 'os.system('cls')' do?
Faizal HussainPosted Oct 14, 2015, 10:18 PM
Good one...