Ver originallineas = open("a").readlines()l = [[m.strip() for m in n] for n in [linea.split(",") for linea in lineas]]