We should have a capture_output decorator which converts a procedure which prints to stdout into a function which returns a str containing whatever the wrapped function converted to stdout. Probably this needs to happen after the Problem is created, such that we can do the same for the student submission.
We should have a
capture_output
decorator which converts a procedure which prints to stdout into a function which returns a str containing whatever the wrapped function converted to stdout. Probably this needs to happen after the Problem is created, such that we can do the same for the student submission.