You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
"description":"A test to try Python with CodeRoad"
@@ -15,7 +15,7 @@
15
15
"pip3 install -r requirements.txt"
16
16
],
17
17
"commits": [
18
-
"36eba566e39d46c388f5ba78b48a6e7ba41b01c4"
18
+
"beeffe8bdce05a7ddc3fdd8822581a0a4db3c43f"
19
19
]
20
20
}
21
21
},
@@ -26,29 +26,29 @@
26
26
},
27
27
"levels": [
28
28
{
29
-
"id":"L1",
29
+
"id":"1",
30
+
"title":"Add some numbers together",
31
+
"summary":"Test out the basics",
32
+
"content":"This is just a test, so here's the answer:\n\n```py\ndef add(*args):\n '''Add 1 or more numbers together'''\n total = 0\n for arg in args:\n total += arg\n return total\n```",
30
33
"steps": [
31
34
{
32
-
"id":"L1S1",
35
+
"id":"1.1",
33
36
"setup": {
34
37
"files": [
35
38
"src/example.py"
36
39
],
37
40
"commits": [
38
-
"2e9f2fd92f0b7b8854e3d7bf47ae8c6787800066"
41
+
"03ca32012287bb9e32723442bb8bbd7582bda236"
39
42
]
40
43
},
44
+
"content":"Complete the `add` function. It should be able to add one or more numbers together.\nFor example: `add(1) = 1`, `add(1, 2) = 3`, and `add(1, 2, 3) = 6`.",
41
45
"solution": {
42
46
"commits": [
43
-
"cdbe4321b9c88a0067de3f65279ab9fb54a225e2"
47
+
"3c77a83d44f0aabe7f72152dfda117e7ac25a5b2"
44
48
]
45
-
},
46
-
"content":"Complete the `add` function. It should be able to add one or more numbers together.\nFor example: `add(1) = 1`, `add(1, 2) = 3`, and `add(1, 2, 3) = 6`."
49
+
}
47
50
}
48
-
],
49
-
"title":"Add some numbers together",
50
-
"summary":"Test out the basics",
51
-
"content":"This is just a test, so here's the answer:\n\n```py\ndef add(*args):\n '''Add 1 or more numbers together'''\n total = 0\n for arg in args:\n total += arg\n return total\n```"