day19/puzzle2.py
def update(rules):
    """Adjust the rules to contain loops"""
    rules["8"] = "42 | 42 8"
    rules["11"] = "42 31 | 42 11 31"
    return rules
Adjust the rules to contain loops
Adjust the rules to contain loops
Adjust the rules to contain loops
def update(rules):
    rules["8"] = "42 | 42 8"
    rules["11"] = "42 31 | 42 11 31"
    return rules
def update ( rules ) : rules [ "8" ] = "42 | 42 8" rules [ "11" ] = "42 31 | 42 11 31" return rules
Adjust the rules to contain loops
Adjust the rules to contain loops
"""Adjust the rules to contain loops"""
rules