summaryrefslogtreecommitdiff
path: root/comp/work/23/higherorder.py
diff options
context:
space:
mode:
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)