summaryrefslogtreecommitdiff
path: root/py00/ex5
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2026-06-07 08:59:04 +0200
committeryctct <yctct@yctct.com>2026-06-07 08:59:04 +0200
commit15115b4c52bfda0d1cca9fa1155beecbb873ec35 (patch)
treeb3f0975e63eb04dcba732a78ce9bd9abda8acf01 /py00/ex5
First commit, add all files
Diffstat (limited to 'py00/ex5')
-rw-r--r--py00/ex5/ft_water_reminder.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/py00/ex5/ft_water_reminder.py b/py00/ex5/ft_water_reminder.py
new file mode 100644
index 0000000..2f456ed
--- /dev/null
+++ b/py00/ex5/ft_water_reminder.py
@@ -0,0 +1,6 @@
+def ft_water_reminder():
+ day = int(input("Days since last watering: "))
+ if day > 2:
+ print("Water the plants!")
+ else:
+ print("Plants are fine")