advent-of-code/2024/19/colors.py

8 lines
215 B
Python

#!/usr/bin/env python3
import sys
input_file = sys.argv[1]
with open(input_file) as fd:
print(fd.read().replace("w", "").replace("u", "🟦").replace("b", "").replace("r", "🟥").replace("g", "🟩"))