Let's see how far I get this year.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 349B

11 months ago
12345678910111213
  1. DEBUG = False
  2. def debug(message, *args, **kwargs):
  3. global DEBUG
  4. if DEBUG:
  5. print(message, *args, **kwargs)
  6. def load_input(day):
  7. day = str(day) if day >= 10 else f"0{day}"
  8. filename = f"day{day}.input"
  9. with open(filename, "r") as file:
  10. input_list = [line.strip() for line in file.readlines()]
  11. return input_list