2024(4): add toggle for verbose output

This commit is contained in:
2024-12-19 11:07:09 +01:00
parent 9d50931fe9
commit 987bae2bd0

View File

@ -1,8 +1,13 @@
import itertools
verbose = False
def scan_line(line):
to_find = "XMAS"
if verbose:
if to_find in line:
print(line)
return line.count(to_find)