You are viewing a single comment's thread. Return to all comments →
result = sorted(input(), key=lambda x: (x.isdigit() and int(x) % 2 == 0, x.isdigit(), x.isupper(), x)) print(''.join(result))
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 →