You are viewing a single comment's thread. Return to all comments →
s.sort() lowercase = uppercase = odd = even = "" for letter in s: if letter.isnumeric(): odd += odd.join(letter) if int(letter) % 2 == 0 else "" even += even.join(letter) if int(letter) % 2 == 1 else "" else: lowercase += lowercase.join(letter) if letter.islower() else "" uppercase += uppercase.join(letter) if letter.isupper() else "" print(lowercase, uppercase, even, odd, sep="")
That's it
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 →
That's it