Skip to content

Commit 9976c99

Browse files
Merge pull request geekcomputers#174 from OmkarPathak/fix/readme-update
Clean comments
2 parents c3f4447 + c2bdb8c commit 9976c99

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

SimpleStopWatch.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#Author: OMKAR PATHAK
2+
#This script helps to build a simple stopwatch application using Python's time module.
3+
4+
import time
5+
6+
print('Press ENTER to begin, Press Ctrl + C to stop')
7+
while True:
8+
try:
9+
input() #For ENTER
10+
starttime = time.time()
11+
print('Started')
12+
except KeyboardInterrupt:
13+
print('Stopped')
14+
endtime = time.time()
15+
print('Total Time:', round(endtime - starttime, 2),'secs')
16+
break

testlines.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Script Name : testlines.py
2-
# Author : Craig Richards
3-
# Created : 08th December 2011
2+
# Author : Craig Richards
3+
# Created : 08th December 2011
44
# Last Modified :
5-
# Version : 1.0
5+
# Version : 1.0
66

77
# Modifications : beven nyamande
88

9-
# Description : This very simple script open a file and prints out 100 lines of whatever is set for the line variableest you want to print\n" # This sets the variable for the text that you want to print
9+
# Description : This is a very simple script that opens up a file and writes whatever is set "
1010

1111

1212
def write_to_file(filename, txt):

0 commit comments

Comments
 (0)