title: How to delete the very last character from every string in a list of strings
body: <p>I have the strings '80010', '80030', '80050' in a list, as in </p>
  
  <pre><code>test = ['80010','80030','80050']
  </code></pre>
  
  <p>How can I delete the very last character (in this case the very last digit of each string which is a 0), so that I can end up with another list containing only the first four digits/characters from each string? So end up with something like </p>
  
  <pre><code>newtest = ['8001', '8003', '8005']
  </code></pre>
  
  <p>I am very new to Python but I have tried with if-else statements, appending, using indexing [:-1], etc. but nothing seems to work unless I end up deleting all my other zeros. Thank you so much!</p>