Skip to content

Commit

Permalink
updated example code level 6 Dutch, fixes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
Felienne committed Apr 1, 2020
1 parent 75a4fba commit da59746
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions docs/nl-level6.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ Zo doe je dat voor 1 dobbelsteen:

1 `keuzes is 1, 2, 3, 4, 5, regenworm`

2 `worp is keuzes at random`
2 `punten is 0`

3 `print 'je gooide ' worp`
3 `worp is keuzes at random`

4 `if worp is regenworm punten is punten + 5 else punten is punten + worp`
4 `print 'je gooide ' worp`

5 `if worp is regenworm punten is punten + 5 else punten is punten + worp`

6 `print 'dat zijn dan ' punten`
Kun jij de code nu zo maken dat je de totaalscore krijgt voor 8 dobbelstenen?
Lukt het niet, bekijk dan de uitlegvideo om te zien hoe je de code afmaakt voor meer dobbelstenen.

Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def test_print_calculation_directly(self):
# self.assertEqual(run_code(result),'me wants a cookie!\nme wants a cookie!\nme wants a cookie!\nme wants a cookie!\nme wants a cookie!')
#
#
#
#


if __name__ == '__main__':
Expand Down

0 comments on commit da59746

Please sign in to comment.