how to get rid of line break in python in a list code example Example: python remove \n form list converted_list.append(element.strip())