utils_31.py 211 B

123456
  1. def save_output(output, list_to_save):
  2. if not output:
  3. with open(output, "w") as f:
  4. for item in list_to_save:
  5. f.write("%s\n" % item)
  6. print(f"Output file: {output}")