Facebook
From Nabeeha Fiona Abdullah, 1 Month ago, written in Python.
Embed
Download Paste or View Raw
Hits: 50
  1. word = input()
  2.  
  3. lower = 0
  4. upper = 0
  5.  
  6. for i in word:
  7.     if i.isupper():
  8.         upper += 1
  9.     else:
  10.         lower += 1
  11. if upper > lower:
  12.     word = word.upper()
  13. else:
  14.     word = word.lower()
  15.  
  16. print(word)