You are viewing a single comment's thread. Return to all comments →
l,u,o,e=[],[],[],[] s=input() for i in s: if i.islower(): l.append(i) elif i.isupper(): u.append(i) else: if (int(i))%2==0: e.append(i) else: o.append(i) l.sort() u.sort() o.sort() e.sort() print(''.join(l+u+o+e))
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 →