summaryrefslogtreecommitdiff
path: root/comp/work/23/higherorder.py
diff options
context:
space:
mode:
authorstandenboy <standenboy@StandenboyLAP.lan>2024-02-07 13:25:38 +0000
committerstandenboy <standenboy@StandenboyLAP.lan>2024-02-07 13:25:38 +0000
commite4864bf1cd9e192eb54e492aaf02a397e143539c (patch)
treebed018816cb704e53839b1122081de799a6e5e8e /comp/work/23/higherorder.py
parent073f1ce23d470bd85b0eb7497308f879ee214a48 (diff)
added homework
Diffstat (limited to 'comp/work/23/higherorder.py')
-rw-r--r--comp/work/23/higherorder.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/work/23/higherorder.py b/comp/work/23/higherorder.py
new file mode 100644
index 0000000..181c333
--- /dev/null
+++ b/comp/work/23/higherorder.py
@@ -0,0 +1,10 @@
+def shout(word):
+ return (word.upper())
+
+def wisper(word):
+ return (word.lower())
+
+def say(func):
+ print(func("heLLo"))
+
+say(shout)