2024(4): add toggle for verbose output
This commit is contained in:
@ -1,8 +1,13 @@
|
|||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
|
|
||||||
|
verbose = False
|
||||||
|
|
||||||
def scan_line(line):
|
def scan_line(line):
|
||||||
to_find = "XMAS"
|
to_find = "XMAS"
|
||||||
|
if verbose:
|
||||||
|
if to_find in line:
|
||||||
|
print(line)
|
||||||
|
|
||||||
return line.count(to_find)
|
return line.count(to_find)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user