title: error 'int' object is not subscriptable - python
body: <p>im new in programming, i was trying simple code rle decompress, but im get error <strong>'int' object is not subscriptable</strong> in  <code>if (JumlahKarakter[i].isalpha() == True):</code> , how to fix this error?</p>
  <p>this my code</p>
  <pre><code>TeksAsli = input(&quot;Masukan Input Teks Yan Akan Dikompress: &quot;)
  JumlahKarakter = len(TeksAsli)
  Teks = &quot;&quot;
  for i in range(0, JumlahKarakter):
      if (JumlahKarakter[i].isalpha() == True):
          for j in range(0,JumlahKarakter[i+1]):
              Teks = Teks + TeksAsli[i]
  
  print(&quot;Hasil Decompress = &quot;, Teks)
  </code></pre>