Facebook
From Hrishikesh Saha, 1 Year ago, written in Python.
Embed
Download Paste or View Raw
Hits: 68
  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())