From e4864bf1cd9e192eb54e492aaf02a397e143539c Mon Sep 17 00:00:00 2001 From: standenboy Date: Wed, 7 Feb 2024 13:25:38 +0000 Subject: added homework --- comp/work/23/higherorder.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 comp/work/23/higherorder.py (limited to 'comp/work/23/higherorder.py') 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) -- cgit v1.2.3