Let's see how far I get this year.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718
  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. try:
  10. day = str(day) if day >= 10 else f"0{day}"
  11. except (ValueError, TypeError):
  12. pass
  13. filename = f"day{day}.input"
  14. with open(filename, "r") as file:
  15. input_list = [line.strip() for line in file.readlines()]
  16. return input_list