Answers for "how to remove last character from a list in python"

-1

how to remove last character from a list in python

test = ["80010","80030","80050"]
newtest = [x[:-1] for x in test]
Posted by: Guest on November-11-2020

Code answers related to "how to remove last character from a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language