code: def interpret(code, in_vars):
      
      try:
          result = eval(code, in_vars)
      except SyntaxError:
          pass  # exec code outside of exception context
      else:
          if result is not None:
              print(ascii(result))
          return  # don't also exec code
      exec_func(code, in_vars)
docs: Try to evaluate the given code, otherwise execute it.