import mod2okz, mod1okz, os file1 = os.path.abspath(input("Введите имя первого файла: ")) file2 = os.path.abspath(input("Введите имя второго файла: ")) def read_float_list(filename): nums = [] with open(filename, 'r') as f: for line in f: nums.extend([float(x) for x in line.split()]) return nums list1, list2 = read_float_list(file1), read_float_list(file2) result = mod2okz.calculate_correlation(list1, list2) print(f"{result:.3f}")