# Pyre type checker | # Pyre type checker | ||||
.pyre/ | .pyre/ | ||||
# Virtual environment | |||||
pyvenv.cfg | |||||
bin/activate | |||||
bin/activate.csh | |||||
bin/activate.fish | |||||
bin/Activate.ps1 | |||||
bin/pip | |||||
bin/pip3 | |||||
bin/pip3.10 | |||||
bin/python | |||||
bin/python3 | |||||
bin/python3.10 | |||||
lib64 | |||||
# Advent of Code | |||||
*.input |
def main(): | def main(): | ||||
from string import digits | from string import digits | ||||
with open("input01.txt", "r") as file: | |||||
with open("day01.input", "r") as file: | |||||
input_lines = file.readlines() | input_lines = file.readlines() | ||||
# The calibration value of each line is the first and last digit | # The calibration value of each line is the first and last digit |
DIGITS_SPELLED = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] | DIGITS_SPELLED = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] | ||||
with open("input01.txt", "r") as file: | |||||
with open("day01.input", "r") as file: | |||||
input_lines = file.readlines() | input_lines = file.readlines() | ||||
# The calibration value of each line is the first and last digit | # The calibration value of each line is the first and last digit |