title: Problem with lists; TypeError: 'int' object is not subscriptable
body: <pre><code>import random
  stats=[]
  attributes=5
  print(&quot;Stats:&quot;, end=&quot; &quot;)
  for i in range(attributes):
    r=random.randint(40,70)
    stats.append(r)
    print(stats[i], end=&quot; &quot;)
  print('''
  \t[1]- Strength
  \t[2]- Dexterity
  \t[3]- Intelligence
  \t[4]- Wisdom
  \t[5]- Charisma
  ''')
  select = int(input(&quot;Select: &quot;))
  select -= 1
  stats[select] += random.randint(10,15)
  for i in range(len(stats)):
    if i==select:
      continue
    stats[i] -= random.randint(10,15)
  print(f'''New Stats is: {stats}''', end= &quot; &quot;)
  
  #Fireball
  fireball=[12, 15, 28, 10, 5]
  skill=input(&quot;\nChoose One Of Four Skills: &quot;)
  if skill==&quot;F&quot; or &quot;f&quot;:
    stats[i] -= fireball[i]
    if stats[i]&gt;0:
      print(stats)
  #After this there should be 3 more similar ones (Like same but for lightning).
  
  #Lightning
  
  #Silence
  
  #Fire Ward
  </code></pre>
  <p>With this code I get for exaple this output:</p>
  <pre><code>Stats: 65 48 48 42 41 
      [1]- Strength
      [2]- Dexterity
      [3]- Intelligence
      [4]- Wisdom
      [5]- Charisma
  
  Select: 3
  New Stats is: [54, 36, 59, 29, 26] 
  Choose One Of Four Skills: f
  [54, 36, 59, 29, 21]
  </code></pre>
  <p>However, what I expect to see in the last lines is:</p>
  <pre><code>Choose One Of Four Skills: f
  [42, 21, 28, 19, 16]
  </code></pre>
  <p>Because I have clearly metioned that the list shoul be decrease by values in list fireball in these lines:</p>
  <pre><code>if skill==&quot;F&quot; or &quot;f&quot;:
        stats[i] -= fireball[i]
  </code></pre>
  <p>Could anyone please explain why it gives me the same list? I tried adding <code>[i]</code> in the last line (which is: <code>print(stats)</code>), but in that case it shows only one value.</p>