def numbers_reading(file_name = str): with open(file_name) as f: fin_list = list(map(float, f.read().split())) return fin_list