Skip to content

Commit 9925648

Browse files
committed
Merge pull request gregmalcolm#67 from santosh/readme
Some formatting and language improvement to README.rst
2 parents 1581427 + a6f55de commit 9925648

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ at http://rubykoans.com/.
1313
Python Koans is an interactive tutorial for learning the Python programming
1414
language by making tests pass.
1515

16-
Most tests are 'fixed' by filling the missing parts of assert functions. Eg:
16+
Most tests are *fixed* by filling the missing parts of assert functions. Eg:
1717

1818
self.assertEqual(__, 1+2)
1919

@@ -53,7 +53,7 @@ need to install the Python interpreter.
5353
At this time of writing, there are two versions of the Python Koans:
5454

5555
* one for use with Python 2.7 (earlier versions are no longer supported)
56-
* one for Python 3.1+.
56+
* one for Python 3.1+
5757

5858
You should be able to work with newer Python versions, but older ones will
5959
likely give you problems.
@@ -64,16 +64,16 @@ You can download Python from here:
6464

6565
After installing Python make sure the folder containing the python executable
6666
is in the system path. In other words, you need to be able to be able to run
67-
Python from a command console. With Python 2 it will be called 'python'
68-
or 'python.exe' depending on the operating system. For Python 3 it will either
69-
be 'python3' or for windows it will be 'python.exe'.
67+
Python from a command console. With Python 2 it will be called `python`
68+
or `python.exe` depending on the operating system. For Python 3 it will either
69+
be `python3` or for windows it will be `python.exe`.
7070

7171
If you have problems, this may help:
7272

7373
http://www.python.org/about/gettingstarted
7474

75-
Windows users may also want to update the line in the batch file run.bat to
76-
set the python path:
75+
Windows users may also want to update the line in the batch file `run.bat` to
76+
set the python path::
7777

7878
SET PYTHON_PATH=C:\Python27
7979

@@ -87,8 +87,8 @@ http://www.youtube.com/watch?v=e2WXgXEjbHY&list=PL5Up_u-XkWgNcunP_UrTJG_3EXgbK2B
8787

8888
Or if you prefer to read:
8989

90-
From a *nix terminal or windows command prompt go to the python
91-
koans\python_VERSION folder and run::
90+
From a \*nix terminal or windows command prompt go to the python
91+
koans\\python_VERSION folder and run::
9292

9393
python contemplate_koans.py
9494

@@ -106,7 +106,7 @@ Apparently a test failed::
106106
AssertionError: False is not True
107107

108108
It also tells me exactly where the problem in, its an assert on line 12
109-
of .\koans\about_asserts.py. This one is easy, just change False to True to
109+
of .\\koans\\about_asserts.py. This one is easy, just change False to True to
110110
make the test pass.
111111

112112
Sooner or later you will likely encounter tests where you are not sure what the
@@ -119,7 +119,7 @@ expected value should be. For example::
119119
fido = self.Dog()
120120
self.assertEqual(__, isinstance(fido, object))
121121

122-
This is where the Python Command Line can come in handy. in this case I can
122+
This is where the Python Command Line can come in handy. In this case I can
123123
fire up the command line, recreate the scenario and run queries:
124124

125125
.. image:: http://i442.photobucket.com/albums/qq150/gregmalcolm/DebuggingPython.png
@@ -133,7 +133,7 @@ Quoting the Ruby Koans instructions::
133133
"In test-driven development the mantra has always been, red, green,
134134
refactor. Write a failing test and run it (red), make the test pass
135135
(green), then refactor it (that is look at the code and see if you
136-
can make it any better. In this case you will need to run the koan
136+
can make it any better). In this case you will need to run the koan
137137
and see it fail (red), make the test pass (green), then take a
138138
moment and reflect upon the test to see what it is teaching you
139139
and improve the code to better communicate its intent (refactor)."

0 commit comments

Comments
 (0)