Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7be6e24

Browse files
committed
update tutorial
1 parentf5151cf commit7be6e24

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

‎TUTORIAL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A test to try Python with CodeRoad
44

5-
##L1 Add some numbers together
5+
##1. Add some numbers together
66

77
>Test out the basics
88
@@ -19,7 +19,7 @@ def add(*args):
1919
return total
2020
```
2121

22-
###L1S1 Add
22+
###1.1 Add
2323

2424
Complete the`add` function. It should be able to add one or more numbers together.
2525
For example:`add(1) = 1`,`add(1, 2) = 3`, and`add(1, 2, 3) = 6`.

‎coderoad.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version:'0.1.0'
1+
version:'0.1.1'
22
config:
33
testRunner:
44
command:python3 -m tap tests/*_test.py
@@ -11,9 +11,9 @@ config:
1111
uri:https://github.com/shmck/coderoad-python-test
1212
branch:v0.1.1
1313
levels:
14-
-id:L1
14+
-id:'1'
1515
steps:
16-
-id:L1S1
16+
-id:'1.1'
1717
setup:
1818
files:
1919
-src/example.py

‎tutorial.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version":"0.1.0",
2+
"version":"0.1.1",
33
"summary": {
44
"title":"Basic Python Example",
55
"description":"A test to try Python with CodeRoad"
@@ -15,7 +15,7 @@
1515
"pip3 install -r requirements.txt"
1616
],
1717
"commits": [
18-
"36eba566e39d46c388f5ba78b48a6e7ba41b01c4"
18+
"beeffe8bdce05a7ddc3fdd8822581a0a4db3c43f"
1919
]
2020
}
2121
},
@@ -26,29 +26,29 @@
2626
},
2727
"levels": [
2828
{
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```",
3033
"steps": [
3134
{
32-
"id":"L1S1",
35+
"id":"1.1",
3336
"setup": {
3437
"files": [
3538
"src/example.py"
3639
],
3740
"commits": [
38-
"2e9f2fd92f0b7b8854e3d7bf47ae8c6787800066"
41+
"03ca32012287bb9e32723442bb8bbd7582bda236"
3942
]
4043
},
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`.",
4145
"solution": {
4246
"commits": [
43-
"cdbe4321b9c88a0067de3f65279ab9fb54a225e2"
47+
"3c77a83d44f0aabe7f72152dfda117e7ac25a5b2"
4448
]
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+
}
4750
}
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```"
51+
]
5252
}
5353
]
5454
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp