You are viewing a single comment's thread. Return to all comments →
import re string=input() lc=re.findall(r'[a-z]',string) uc=re.findall(r'[A-Z]',string) num=re.findall(r'[0-9]',string) od=[ i for i in num if int(i)%2!=0] ev=[ i for i in num if int(i)%2==0] print(*sorted(lc),*sorted(uc),*sorted(od),*sorted(ev),sep="")
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 →