Advent_of_Code_2023_Intermate/Questions/utils.py

5 lines
147 B
Python

def load_data(filepath) -> list:
text_file = open(filepath, "r")
data = text_file.read().splitlines()
text_file.close()
return data