Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing '/data/advent2020/' folder #103

Open
TPNguyen opened this issue May 16, 2021 · 0 comments
Open

missing '/data/advent2020/' folder #103

TPNguyen opened this issue May 16, 2021 · 0 comments

Comments

@TPNguyen
Copy link

FileNotFoundError Traceback (most recent call last)
in
----> 1 in1: Set[int] = set(data(1, int))

in data(day, parser, sep)
1 def data(day: int, parser=str, sep='\n') -> list:
2 "Split the day's input file into sections separated by sep, and apply parser to each."
----> 3 sections = open(f'data/advent2020/input{day}.txt').read().rstrip().split(sep)
4 return [parser(section) for section in sections]
5

FileNotFoundError: [Errno 2] No such file or directory: 'data/advent2020/input1.txt'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant