You are viewing a single comment's thread. Return to all comments →
s=input() count1=0 count2=0 for i in s: if(i.islower()): count1+=1 else: count2+=1 if(count1>=count2): print(s.lower()) else: print(s.upper())
Seems like cookies are disabled on this browser, please enable them to open this website
Minimal Distance to Pi
You are viewing a single comment's thread. Return to all comments →
s=input() count1=0 count2=0 for i in s: if(i.islower()): count1+=1 else: count2+=1 if(count1>=count2): print(s.lower()) else: print(s.upper())