From 2f17cf9bf5485b9118d6689f1af5c7dcb9f2e47a Mon Sep 17 00:00:00 2001 From: joshua thomas Date: Tue, 30 Jan 2024 14:14:58 +0530 Subject: [PATCH 1/4] adding A countdowntimer --- countdowntimer.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 countdowntimer.py diff --git a/countdowntimer.py b/countdowntimer.py new file mode 100644 index 0000000..e05db4e --- /dev/null +++ b/countdowntimer.py @@ -0,0 +1,13 @@ +import time + +def countdown(time_sec): + while time_sec: + mins, secs = divmod(time_sec, 60) + timeformat = '{:02d}:{:02d}'.format(mins, secs) + print(timeformat, end='\r') + time.sleep(1) + time_sec -= 1 + + print("stop") + +countdown(5) \ No newline at end of file From 29e573333d37a9167be6880921c46540a04b4314 Mon Sep 17 00:00:00 2001 From: Joshua Thomas <111826880+thomasalex122@users.noreply.github.com> Date: Tue, 30 Jan 2024 15:07:18 +0530 Subject: [PATCH 2/4] Update countdowntimer.py --- countdowntimer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/countdowntimer.py b/countdowntimer.py index e05db4e..f5d9efd 100644 --- a/countdowntimer.py +++ b/countdowntimer.py @@ -8,6 +8,6 @@ def countdown(time_sec): time.sleep(1) time_sec -= 1 - print("stop") + print("stops") -countdown(5) \ No newline at end of file +countdown(5) From 5665e701cfd585aa49f320b0417d86bf50c99e70 Mon Sep 17 00:00:00 2001 From: joshua thomas Date: Tue, 20 Feb 2024 14:21:24 +0530 Subject: [PATCH 3/4] pushing the code --- HariprasadReddysir.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 HariprasadReddysir.html diff --git a/HariprasadReddysir.html b/HariprasadReddysir.html new file mode 100644 index 0000000..4a15f08 --- /dev/null +++ b/HariprasadReddysir.html @@ -0,0 +1,13 @@ + + + + + + Document + + +

+ hello hariprasadreddy sir ! +

+ + \ No newline at end of file From c3ecc38d79ddc67fda799e2149e4d1ba5a27233d Mon Sep 17 00:00:00 2001 From: Joshua Thomas <111826880+thomasalex122@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:32:40 +0530 Subject: [PATCH 4/4] Update add.py --- add.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/add.py b/add.py index 79aff70..ede652b 100644 --- a/add.py +++ b/add.py @@ -1,5 +1,7 @@ a=8 b=4 -d=7 +d=9 c=a+b=d print c + +