We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
s = input()
uppercase = ''
lowercase = ''
odd = ''
even = ''
def fu(ch):
global uppercase
global lowercase
global odd
global even
if ch.isdigit():
if int(ch)%2==0:
even+=ch
else:
odd+=ch
elif ch.isupper():
uppercase+=ch
else:
lowercase+=ch
list(map(fu, sorted(s)))
print(lowercase+uppercase+odd+even,end='')
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
ginortS
You are viewing a single comment's thread. Return to all comments →
sue me.