You are viewing a single comment's thread. Return to all comments →
x = input() lowercase_letters = ''.join(sorted([char for char in x if char.islower()])) upper_letters = ''.join(sorted([char for char in x if char.isupper()])) odd_digits = ''.join(sorted([char for char in x if char.isdigit() and int(char)%2 != 0] )) even_digits = ''.join(sorted([char for char in x if char.isdigit() and int(char)%2 == 0] )) print( lowercase_letters + upper_letters + odd_digits + even_digits)
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 →