Unexpected error while using the len statement : <p>I am trying to solve one of the katas in codewars. The code gives an unexpected error while using len statement. Please can someone help with this.</p>

<pre><code>def scramble(s1,s2):
    j1=[i for i in s2 if i in s1]
    j1=j1.sort()
    s1=[x for x in s1]
    s1=s1.sort()
    if len(s1)==len(j1):
        return True
    else:
        return False
</code></pre>
