Skip to content

Commit 7f86f2d

Browse files
authored
Merge pull request #5 from Mmabiaa/other
Other
2 parents 10d5121 + c4710ae commit 7f86f2d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from plyer import notification
2+
# Send notification
3+
notification.notify(
4+
title="Reminder",
5+
message="Take a break and stretch!",
6+
app_name="Python Notifier",
7+
timeout=10
8+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def power (base, exp):
2+
if exp == 0:
3+
return 1
4+
return base * power(base, exp - 1)
5+
base = int(input("Enter the base number: "))
6+
exp = int(input("Enter the exponent: "))
7+
print (power (base, exp))

0 commit comments

Comments
 (0)