diff options
| author | 2021-12-15 17:20:46 +0100 | |
|---|---|---|
| committer | 2021-12-15 17:21:49 +0100 | |
| commit | a432fa698692c1e6bce0453f55a988b33385d75d (patch) | |
| tree | 51bdde6152b51b55527a150e73d4130ce6975ec4 /aoc/utils.py | |
| parent | 10cca13d8d722bfbae749c285c380233079f65a2 (diff) | |
| download | 2021-a432fa698692c1e6bce0453f55a988b33385d75d.tar.gz 2021-a432fa698692c1e6bce0453f55a988b33385d75d.tar.bz2 2021-a432fa698692c1e6bce0453f55a988b33385d75d.zip | |
Day 15
Diffstat (limited to 'aoc/utils.py')
| -rw-r--r-- | aoc/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ | |||
| 1 | from typing import Callable | ||
| 2 | |||
| 3 | |||
| 4 | def bold(item: str, condition: Callable[[], bool]): | ||
| 5 | return f'\033[36m{item}\033[0m' if condition() else item | ||
