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