From a432fa698692c1e6bce0453f55a988b33385d75d Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 15 Dec 2021 17:20:46 +0100 Subject: Day 15 --- aoc/utils.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 aoc/utils.py (limited to 'aoc/utils.py') diff --git a/aoc/utils.py b/aoc/utils.py new file mode 100644 index 0000000..6d794f4 --- /dev/null +++ b/aoc/utils.py @@ -0,0 +1,5 @@ +from typing import Callable + + +def bold(item: str, condition: Callable[[], bool]): + return f'\033[36m{item}\033[0m' if condition() else item -- cgit v1.2.3