with open('depl_mesure.txt','r') as objf: a = [float(x.strip()) for x in objf] print a