From 3dcf10add2de612b437c4049ff964e3d2b8bec8d Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sun, 12 Jan 2025 13:32:39 +0000 Subject: [PATCH] solutions: 59A --- solutions/word.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 solutions/word.py diff --git a/solutions/word.py b/solutions/word.py new file mode 100644 index 0000000..672e2f4 --- /dev/null +++ b/solutions/word.py @@ -0,0 +1,17 @@ +import string + +s = input() + +l = 0 +h = 0 + +for i in list(s): + if i in string.ascii_uppercase: + h += 1 + else: + l += 1 + +if h > l: + print(s.upper()) +else: + print(s.lower())