diff --git a/python_tools/aoc_utils.py b/python_tools/aoc_utils.py index d112e52..8641da5 100644 --- a/python_tools/aoc_utils.py +++ b/python_tools/aoc_utils.py @@ -4,5 +4,8 @@ def file2list(filepath): f = open(filepath, 'r') return [x.strip() for x in f.readlines()] +def file2listoflists(filepath): + f = open(filepath, 'r') + return [list(x.strip()) for x in f.readlines()]