You are viewing a single comment's thread. Return to all comments →
string1 = list(str(input())) listx = list() [listx.append(i) for i in sorted(string1) if(i.islower())] [listx.append(i) for i in sorted(string1) if(i.isupper())] [listx.append(i) for i in sorted(string1) if( i.isdigit() and int(i)%2 != 0 )] [listx.append(i) for i in sorted(string1) if( i.isdigit() and int(i)%2 == 0 )] print("".join(listx))
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 →