-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevels.json
More file actions
35 lines (35 loc) · 1.23 KB
/
levels.json
File metadata and controls
35 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[
{
"title": "Variabili",
"instructions": "Crea una variabile chiamata 'x' e assegnale il valore 5.",
"valid_answers": ["x=5", "x =5", "x= 5", "x = 5 "]
},
{
"title": "Condizioni",
"instructions": "Scrivi un if che controlla se x e' maggiore di 3.",
"valid_answers": ["if x>3:", "if x >3:", "if x> 3:", "if x > 3:"]
},
{
"title": "Cicli",
"instructions": "Crea un ciclo che stampa i numeri da 1 a 5.",
"valid_answers": ["for i in range(1,6):", "for i in range(1, 6):", "for i in range(1, 6) :"]
},
{
"title": "Funzioni",
"instructions": "Crea una funzione chiamata 'saluta' che stampa 'Ciao'.",
"valid_answers": [
"def saluta():\n print('Ciao')",
"def saluta():\n print('Ciao') "
]
},
{
"title": "Stringhe",
"instructions": "Crea una stringa chiamata 'nome' con il valore 'Mario'.",
"valid_answers": ["nome='Mario'", "nome = 'Mario'", "nome = 'Mario' "]
},
{
"title": "Liste",
"instructions": "Crea una lista chiamata 'numeri' con i valori 1, 2, 3.",
"valid_answers": ["numeri=[1,2,3]", "numeri = [1,2,3]", "numeri=[1, 2, 3]"]
}
]