Question:
I need help removing characters from the start and end of every element in a Python list. For instance,list = [1, 2, 3]
, how could I do this?Answer:
Strip first two chars and last char:[1, 2, 3]
as result) then:If you have better answer, please add a comment about this, thank you!