title: Checking Kangaroo word in python
body: <p>Kangaroo word refers to a word carrying another word within but without transposing any letters.For example, courage contains cog,cur,core etc. but not run,gen,gone.Given 2 string im trying to check if the first string is kangaroo word of the second.</p>
  
  <p>Here is my code</p>
  
  <pre><code>import sys
  s1=input().rstrip()
  s1l=[]
  for i in s1:
      s1l.append(i)
  s2=input().rstrip()
  s2l=[];sol=[]
  for i in s2:
      s2l.append(i)
  ls=len(s1l)
  for i in range(ls):
      for j in range(ls):
          for k in range(ls):
              sol.append((s1[i]+s1[j]+s1[k]))
  for i in sol: 
      if i==s2:
          print('s1 is a kangaroo word of s2')
          sys.exit()
  print('s1 is Not a kangaroo word of s2')     
  </code></pre>
  
  <p>But Im not able to get the desired output.For eg for s1=chariot and s2=rat my code shows true whereas the answer is false.Can someone please explain what mistake Ive made ?</p>