'''

class Solution(object):

def findTheDifference(self, s, t):

"""

:type s: str

:type t: str

:rtype: str

"""

```
s = sorted(s)
t = sorted(t)
len_s = len(s)
for i in xrange(0, len_s-1):
if s[i]==t[i]: continue;
elif s[i] != t[i]: return t[i];
return t[len_s];
```

'''

it is said

Input:

"ae"

"aea"

Output:

'e'

Expected:

'a'

i thought i should have "a" outputed since after the sort, t will be 'aae' and compare s and t, the second element will be different, for t that is 'a'.

can anyone point out my mistake? many thanks