title: 'list assignment index out of range' Error How To Fix?
body: <p>so I made this short script where if I collide with a platform it should delete 1 of my health but I am getting this error</p>
  
  <p>VIdeo OF What I am Trying To Say &lt;-- as you can see if I collide with the my ice tiles it should delete one of my players health --</p>
  
  <pre><code> 'list assignment index out of range' 
  </code></pre>
  
  <pre><code>            for dude in range(len(platforms)-1,-1,-1):
                  if playerman.rect.colliderect(platforms[dude].rect):
                      del healths[dude]
  
  
  
  </code></pre>
  
  <p>my full code cant fit in so I made it a pastebin
  <a href="https://pastebin.com/raw/LrSXSadM" rel="nofollow noreferrer">script</a></p>