## Advent of Code: Day 21

For Day 21, the challenge is to follow a set of rules to convert some strings. import numpy as np rules = {} def flipandrotate(base): np_base = np.array(list(list(x) for x in base.split("/"))) flipped = np.fliplr(np_base) res = [] for i in range(4): for…