# my_list = ['one ', ' tow', 'three'] my_list = list(map(str.strip, my_list)) print(my_list) # ['one', 'tow', 'three']