We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
sep
parser
FileNotFoundError: [Errno 2] No such file or directory: 'data/advent2020/input1.txt'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 applyparser
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'
The text was updated successfully, but these errors were encountered: