Sorting the two buckets
odd = list ( odd ) NEW_LINE odd . sort ( reverse = False ) NEW_LINE odd = str ( odd ) NEW_LINE even = list ( even ) NEW_LINE even . sort ( reverse = False ) NEW_LINE even = str ( even ) NEW_LINE