I have the strings \'80010\', \'80030\', \'80050\' in a list, as in
test = [\'80010\',\'80030\',\'80050\']
How can I delete the very last
You are not so far off. Using the slice notation [:-1] is the right approach. Just combine it with a list comprehension:
>>> test = ['80010','80030','80050']
>>> [x[:-1] for x in test]
['8001', '8003', '8005']
somestring[:-1]
gives you everything from the character at position 0 (inclusive) to the last character (exclusive).