title: it is not running and showing indexError
body: <pre><code>term=&quot;gv jnj klk&quot;
  stri=[]
  c=0
  for i in range(0,len(term)-1):
  if term[i]==&quot; &quot;:
   c=c+1
  else:
   stri[c]=stri[c]+term[i]
  print(stri)
  </code></pre>
  <p>error shown is
  stri[c]=stri[c]+term[i]
  IndexError: list index out of range</p>