Spaces:
Sleeping

raufoon commited on
Commit
79a22fa
·
verified ·
1 Parent(s): 1c8fea8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def run_code_with_inputs(code: str, inputs: str) -> str:
44
 
45
  if any(errors):
46
  nl='\n'
47
- outputs.append(pseudokey, repr(pseudokey))
48
  return f"Errors:\n{nl.join(errors)}\n\nOutput:\n{nl.join(outputs)}"
49
  return outputs[-1]
50
 
 
44
 
45
  if any(errors):
46
  nl='\n'
47
+ outputs.extend([pseudokey, repr(pseudokey)])
48
  return f"Errors:\n{nl.join(errors)}\n\nOutput:\n{nl.join(outputs)}"
49
  return outputs[-1]
50