November 2018
— Whatever
It doesn't matter how many spaces are there. You need to visit each of them to determine if you need it or not.
— Ok
— There is a list which contains strings
— A lot of strings
— Read by chunks
— And the strings look like ' hello '
— Is there an existing function that could do this labour for me?
— Delete all spaces?
— Or only ending spaces?
— Yes, in the list
— Map(str.strip,your_list)