def read (file): '''Чтение данных из файла''' num = [] with open(file,'r') as file: for line in file: num.extend(map(float,line.split())) return num