diff --git a/day-03/src/part02.py b/day-03/src/part02.py index 6424972..1e4ab5e 100644 --- a/day-03/src/part02.py +++ b/day-03/src/part02.py @@ -1,14 +1,12 @@ import sys -import copy from dataclasses import dataclass, field DEBUG = False debug_padding = 40 def debug_print(printname, *args): - if not DEBUG: - return - print(f"{'DEBUG::'+printname:<{debug_padding}}", *args) + if DEBUG: + print(f"{'DEBUG::'+printname:<{debug_padding}}", *args) diff --git a/template-day/src/part01.py b/template-day/src/part01.py index 2301421..6c26291 100644 --- a/template-day/src/part01.py +++ b/template-day/src/part01.py @@ -1,16 +1,18 @@ import sys -from dataclasses import dataclass +from dataclasses import dataclass, field DEBUG = True -padding=24 +debug_padding = 24 def debug_print(printname, *args): - if not DEBUG: - return - print(f"{'DEBUG::'+printname:<{padding}}", *args) - pass + if DEBUG: + print(f"{'DEBUG::'+printname:<{debug_padding}}", *args) +print("Parsing Input:") +print("") +print("===================================\n"); + FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt" f = open(FILENAME, "r") @@ -20,12 +22,28 @@ for line in f.readlines(): debug_print("input", line) + + +print("") +print(" Proccessing:") +print("===================================\n"); # Insert Processing Code + + + print("") -print("Processed:") +print(" Calculate Answer:") +print("===================================\n"); + + + + + + print("") +print(" Answer:") print("===================================\n"); print("Answer: XXX"); \ No newline at end of file diff --git a/template-day/src/part02.py b/template-day/src/part02.py index 2301421..6c26291 100644 --- a/template-day/src/part02.py +++ b/template-day/src/part02.py @@ -1,16 +1,18 @@ import sys -from dataclasses import dataclass +from dataclasses import dataclass, field DEBUG = True -padding=24 +debug_padding = 24 def debug_print(printname, *args): - if not DEBUG: - return - print(f"{'DEBUG::'+printname:<{padding}}", *args) - pass + if DEBUG: + print(f"{'DEBUG::'+printname:<{debug_padding}}", *args) +print("Parsing Input:") +print("") +print("===================================\n"); + FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt" f = open(FILENAME, "r") @@ -20,12 +22,28 @@ for line in f.readlines(): debug_print("input", line) + + +print("") +print(" Proccessing:") +print("===================================\n"); # Insert Processing Code + + + print("") -print("Processed:") +print(" Calculate Answer:") +print("===================================\n"); + + + + + + print("") +print(" Answer:") print("===================================\n"); print("Answer: XXX"); \ No newline at end of file