Skip to content

Commit ffa8871

Browse files
authored
Fix documentation heading formatting for v2 (exercism#1420)
* Fix documentation heading formatting for v2 * Update LEARNING.md
1 parent 8bb4679 commit ffa8871

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/LEARNING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Learning Python From Scratch
1+
## Learning Python From Scratch
22
Python is, as Wikipedia goes, a powerful *general-purpose high-level programming language*. It basically means that it can be used to write a wide variety of different kinds of software, from videogames to HTTP servers to command-line tools.
33

44
One of the main characteristics that differentiates Python from other programming languages is its strong emphasis on readability and code cleaness. In fact, differently from other languages like JavaScript or C++, in Python code indentation has a syntactical meaning and you are forced to chose and adhere to a writing style (e.g. don't mix *tabs* and *spaces* for identation; don't use two spaces where you should use four etc.). Yes, forced: the Python interpreter will raise SyntaxErrors if it recognize wrong indentation.

docs/TESTS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installing `pytest`
1+
## Installing `pytest`
22

33
We recommend you install [pytest](http://pytest.org/latest/) and
44
[pytest-cache](http://pythonhosted.org/pytest-cache/). `pytest` is a testing
@@ -44,9 +44,9 @@ cd exercism/python/bob
4444
python bob_test.py
4545
```
4646

47-
# Running the Tests
47+
## Running the Tests
4848

49-
## Run All Tests
49+
### Run All Tests
5050

5151
To run all tests for a specific exercise (we will take the `bob.py` exercise as
5252
an example here), place yourself in the directory where that exercise has been
@@ -73,25 +73,25 @@ Ran 0 tests in 0.000s
7373
OK
7474
```
7575

76-
## More `pytest` Examples
76+
### More `pytest` Examples
7777

78-
### Stop After First Failure
78+
#### Stop After First Failure
7979
The above will run all the tests, whether they fail or not. If you'd rather stop
8080
the process and exit on the first failure, run:
8181

8282
```bash
8383
pytest -x bob_test.py
8484
```
8585

86-
### Failed Tests First
86+
#### Failed Tests First
8787

8888
`pytest-cache` remembers which tests failed, and can run those tests first.
8989

9090
```bash
9191
pytest --ff bob_test.py
9292
```
9393

94-
### Running All Tests for All Exercises
94+
#### Running All Tests for All Exercises
9595

9696
```bash
9797
cd exercism/python/

0 commit comments

Comments
 (0)