Skip to content

Commit bbb3798

Browse files
committed
Update README
1 parent f3c9637 commit bbb3798

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,24 @@ Hello world
2929
from challenges import Challenge
3030
3131
class AddChallenge(Challenge):
32+
3233
sample = '''
3334
5, 6
3435
'''
3536
37+
expect = '''
38+
11
39+
'''
40+
3641
def build(self):
3742
self.model = self.line_to_integers(0)
3843
3944
def calc(self):
4045
self.result = self.model[0] + self.model[1]
4146
47+
def format(self):
48+
self.output = str(self.result)
49+
4250
The class to write lets you focus on the core algorithms of the challenge while keeping stuff like opening, reading and
4351
writing of files out of the way. You inherit several methods to set up the model or to format your result for writing.
4452

@@ -309,10 +317,10 @@ alternatively as `stepik` or `rosalind`.
309317
.. code-block:: bash
310318
311319
prompt> challenge --version
312-
challenge 0.6.0
320+
challenge 0.8.0
313321
314322
prompt> stepik --version
315-
stepik 0.6.0
323+
stepik 0.8.0
316324
317325
prompt> rosalind --version
318-
rosalind 0.6.0
326+
rosalind 0.8.0

0 commit comments

Comments
 (0)