You are viewing a single comment's thread. Return to all comments →
s = input() l, u, do, de = '', '', '', '' for c in sorted(s): if c.islower(): l += c elif c.isupper(): u += c elif int(c) % 2: do += c else: de += c print(l + u + do + de)
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
ginortS
You are viewing a single comment's thread. Return to all comments →