DEV Community

Discussion on: Advent of Code (in MiniScript), Day 11

Collapse
 
joestrout profile image
JoeStrout

Just to follow up on my own post... I went and grabbed that MiniScriptEval package, and it was super easy. Literally just

import eval
eval.variables.old = 1234
result = eval.eval("old * 5")

...and it gives me a correct result. If I had to do this challenge over again, I would just use this!