You are viewing a single comment's thread. Return to all comments →
print(*sorted(input(), key = lambda x: ( 0 if str(x).islower() else 1 if str(x).isupper() else 2 if int(x)%2 != 0 else 3,x)), sep = '')
ginortS
You are viewing a single comment's thread. Return to all comments →