solutions: 59A
This commit is contained in:
parent
e2b512e02a
commit
3dcf10add2
1 changed files with 17 additions and 0 deletions
17
solutions/word.py
Normal file
17
solutions/word.py
Normal file
|
@ -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())
|
Loading…
Reference in a new issue