>>> import operator >>> xs=['banana', 'loganberry', 'passion fruit'] >>> reduce(operator.concat,(x.strip() for x in xs))