You are viewing a single comment's thread. Return to all comments →
s = input() all_lower = sorted([i for i in s if i.islower()]) all_upper = sorted([i for i in s if i.isupper()]) all_odd = sorted([i for i in s if i.isdigit() and int(i)%2!=0]) all_even = sorted([i for i in s if i.isdigit() and int(i)%2==0]) print("".join(all_lower+all_upper+all_odd+all_even))
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 →
For Python3 Platform