From b7741ee3395cdcfe1703779530673bbcb33f166c Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 14 Jul 2025 10:26:29 +0200 Subject: [PATCH] Add fucntions/string_utils.py --- fucntions/string_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fucntions/string_utils.py diff --git a/fucntions/string_utils.py b/fucntions/string_utils.py new file mode 100644 index 00000000..5070017d --- /dev/null +++ b/fucntions/string_utils.py @@ -0,0 +1,7 @@ +def uppercase(s): + if s is None: + raise TypeError("Input cannot be None") + return s.upper() + +def reverse(s): + return s[::-1]