Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
5a6ebaf31c
@ -0,0 +1 @@
|
|||||||
|
def ascii()
|
@ -0,0 +1,14 @@
|
|||||||
|
# Affiche Hello world !
|
||||||
|
|
||||||
|
print("Hello World !")
|
||||||
|
|
||||||
|
# Declaration de variable
|
||||||
|
|
||||||
|
num = 1
|
||||||
|
string = "Oi"
|
||||||
|
liste=[num,string]
|
||||||
|
|
||||||
|
print(liste)
|
||||||
|
|
||||||
|
|
||||||
|
# Utilisation de fonction
|
@ -0,0 +1,12 @@
|
|||||||
|
//~ Function that test the user code
|
||||||
|
|
||||||
|
async function submit(){
|
||||||
|
var test = editor.getValue();
|
||||||
|
exec("print('Hello World !')", "code");
|
||||||
|
exec(test, "solution");
|
||||||
|
result.innerHTML = "Test en cours...";
|
||||||
|
await new Promise(r => setTimeout(r, 1500));
|
||||||
|
check();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
async function submit(){
|
||||||
|
var test = editor.getValue();
|
||||||
|
exec("print([1,'Oui'])", "code");
|
||||||
|
exec(test, "solution");
|
||||||
|
result.innerHTML = "Test en cours...";
|
||||||
|
await new Promise(r => setTimeout(r, 1500));
|
||||||
|
check();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue