You are viewing a single comment's thread. Return to all comments →
you need import print_function, to use print with 'sep' ~ such as from future import print_function
print(*(sorted(raw_input(), key=lambda x: ( x.isdigit() and int(x)%2==0, x.isdigit(), x.isupper(), x.islower(), x))), sep='')
ginortS
You are viewing a single comment's thread. Return to all comments →
you need import print_function, to use print with 'sep' ~ such as
from future import print_function
print(*(sorted(raw_input(), key=lambda x: ( x.isdigit() and int(x)%2==0, x.isdigit(), x.isupper(), x.islower(), x))), sep='')