diff --git a/day08.py b/day08.py index c9bee00..611c4f0 100644 --- a/day08.py +++ b/day08.py @@ -45,7 +45,7 @@ def part2(test_mode=False): if not check_command.startswith('nop') and not check_command.startswith('jmp'): continue - check_code = my_input.copy() + check_code = my_input[:] if check_command.startswith('nop'): check_code[counter] = check_code[counter].replace('nop', 'jmp')