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())