You are viewing a single comment's thread. Return to all comments →
S = input() low = "" up = "" odd = "" even = "" for i in S: if i.islower(): low += i elif i.isupper(): up += i elif i.isdigit(): if int(i) % 2 == 1: odd += i else: even += i low = sorted(low) up = sorted(up) odd = sorted(odd) even = sorted(even) print("".join(low+up+odd+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 →