From e42a7e2fab234a779c5e0e80de1fd241819eb516 Mon Sep 17 00:00:00 2001 From: Franz Dietrich Date: Wed, 11 Apr 2018 08:12:51 +0200 Subject: [PATCH 1/2] Message for the user howto start the stopwatch --- SimpleStopWatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimpleStopWatch.py b/SimpleStopWatch.py index 4d6791ff6eb..cd55b3a710a 100644 --- a/SimpleStopWatch.py +++ b/SimpleStopWatch.py @@ -6,7 +6,7 @@ print('Press ENTER to begin, Press Ctrl + C to stop') while True: try: - input() # For ENTER. Use raw_input() if you are running python 2.x instead of input() + input("Waiting for [Enter] to be pressed to start. ") # For ENTER. Use raw_input() if you are running python 2.x instead of input() starttime = time.time() print('Started') except KeyboardInterrupt: From 649f2d14dbc7b3b839d798e3c7c54ee668d262e2 Mon Sep 17 00:00:00 2001 From: Franz Dietrich Date: Wed, 11 Apr 2018 10:20:15 +0200 Subject: [PATCH 2/2] verschieben des Textes --- SimpleStopWatch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SimpleStopWatch.py b/SimpleStopWatch.py index cd55b3a710a..0732829bf30 100644 --- a/SimpleStopWatch.py +++ b/SimpleStopWatch.py @@ -3,10 +3,9 @@ import time -print('Press ENTER to begin, Press Ctrl + C to stop') while True: try: - input("Waiting for [Enter] to be pressed to start. ") # For ENTER. Use raw_input() if you are running python 2.x instead of input() + input("Press ENTER to begin, Press Ctrl + C to stop") # For ENTER. Use raw_input() if you are running python 2.x instead of input() starttime = time.time() print('Started') except KeyboardInterrupt: