-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutorial.json
55 lines (55 loc) · 1.47 KB
/
tutorial.json
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"version": "0.1.1",
"summary": {
"title": "Basic Python Example",
"description": "A test to try Python with CodeRoad"
},
"config": {
"testRunner": {
"command": "python3",
"args": {
"tap": "-m tap tests/*_test.py",
"filter": "--match"
}
},
"setup": {
"commands": [
"pip3 install -r requirements.txt"
],
"commits": [
"beeffe8bdce05a7ddc3fdd8822581a0a4db3c43f"
]
},
"repo": {
"uri": "https://github.com/shmck/coderoad-python-test",
"branch": "v0.1.1"
}
},
"levels": [
{
"id": "1",
"title": "Add some numbers together",
"summary": "Test out the basics",
"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```",
"steps": [
{
"id": "1.1",
"setup": {
"files": [
"src/example.py"
],
"commits": [
"03ca32012287bb9e32723442bb8bbd7582bda236"
]
},
"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`.",
"solution": {
"commits": [
"3c77a83d44f0aabe7f72152dfda117e7ac25a5b2"
]
}
}
]
}
]
}