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 460B

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