def ReadFile(file): Spis = [] with open(file) as fl: for line in fl: Spis.extend(map(float,line.split())) return Spis