Facebook
From Hrishikesh Saha, 1 Month ago, written in Python.
Embed
Download Paste or View Raw
Hits: 51
  1. w = input()
  2.  
  3. upper = 0
  4. lower = 0
  5.  
  6. for x in w:
  7.     if x.isupper():
  8.         upper+=1
  9.  
  10.     elif x.islower():
  11.         lower+=1
  12.  
  13. if upper > lower:
  14.     print(w.upper())
  15.  
  16. else:
  17.     print(w.lower())