From 967e5b941ce9de41603a48c4ab076043f4d83e81 Mon Sep 17 00:00:00 2001 From: Boateng Prince Agyenim <163312213+Mmabiaa@users.noreply.github.com> Date: Fri, 3 Jan 2025 00:57:25 +0000 Subject: [PATCH 1/2] Create notifier.py A python program to send notifications --- Python_Begginer_Projects/Amazing/notifier.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Python_Begginer_Projects/Amazing/notifier.py diff --git a/Python_Begginer_Projects/Amazing/notifier.py b/Python_Begginer_Projects/Amazing/notifier.py new file mode 100644 index 0000000..95c85c3 --- /dev/null +++ b/Python_Begginer_Projects/Amazing/notifier.py @@ -0,0 +1,8 @@ +from plyer import notification +# Send notification +notification.notify( +title="Reminder", +message="Take a break and stretch!", +app_name="Python Notifier", +timeout=10 +) From 6c34dab563469da041badab498f328ff2aba1153 Mon Sep 17 00:00:00 2001 From: Boateng Prince Agyenim <163312213+Mmabiaa@users.noreply.github.com> Date: Fri, 3 Jan 2025 01:00:02 +0000 Subject: [PATCH 2/2] Create pow_solver.py A python program that helps to solve power of numbers calculations --- Python_Begginer_Projects/Amazing/pow_solver.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Python_Begginer_Projects/Amazing/pow_solver.py diff --git a/Python_Begginer_Projects/Amazing/pow_solver.py b/Python_Begginer_Projects/Amazing/pow_solver.py new file mode 100644 index 0000000..a432366 --- /dev/null +++ b/Python_Begginer_Projects/Amazing/pow_solver.py @@ -0,0 +1,7 @@ +def power (base, exp): + if exp == 0: + return 1 + return base * power(base, exp - 1) +base = int(input("Enter the base number: ")) +exp = int(input("Enter the exponent: ")) +print (power (base, exp))