Facebook
From Mubtasim, 1 Month ago, written in Python.
Embed
Download Paste or View Raw
Hits: 51
  1. s = input()
  2. l = len(s)
  3. count = 0
  4. for i in s:
  5.     if i >= "a" and i <= "z":
  6.         count = count+1
  7. if count >= (l/2):
  8.     print(s.lower())
  9. else:
  10.     print(s.upper())