//~ Function that test the user code async function submit(){ var test = editor.getValue()+`\n import random as r def triVerif(a,b): s = "" i = 0 while len(s)i): s += a[i] if(len(b)>i): s += b[i] i += 1 return s def triTest(x): a = "Hlowrd" b = "el ol" if(triVerif(a,b)!=tri(a,b)): return False return True print(triTest(5)) `; exec("print('True')", "code"); exec(test, "solution"); result.innerHTML = "Test en cours..."; await new Promise(r => setTimeout(r, 1500)); check(); }