diff options
author | Walther Neuper <neuper@neuper.(none)> | 2009-12-12 14:02:28 (GMT) |
---|---|---|
committer | Walther Neuper <neuper@neuper.(none)> | 2009-12-12 14:02:28 (GMT) |
commit | 271d0b2e8affdb4bb616bbb203fabe9c423d0c47 (patch) | |
tree | 24cfb7892d3b741f44b4d62209ca9395c6c1d382 | |
parent | 0c71b7c74218316ff55a8fce49dd03158abec9e0 (diff) |
start Coach.create_exercises --> ???, added files
-rw-r--r-- | ReckonPrimer.activity/collection.py | 14 | ||||
-rw-r--r-- | ReckonPrimer.tests/learner/test_pop.py | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ReckonPrimer.activity/collection.py b/ReckonPrimer.activity/collection.py new file mode 100644 index 0000000..95d7f8d --- /dev/null +++ b/ReckonPrimer.activity/collection.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- + +from settings import Settings + +class Collection: + + def __init__(self): + self._sett = Settings() + # these data should come from pickle (see code in Settings) + self._data = [self._sett.get_setting('addsub_simp'), + self._sett.get_setting('passten'), + self._sett.get_setting('times_div')] + + #def diff --git a/ReckonPrimer.tests/learner/test_pop.py b/ReckonPrimer.tests/learner/test_pop.py new file mode 100644 index 0000000..a4cdd07 --- /dev/null +++ b/ReckonPrimer.tests/learner/test_pop.py @@ -0,0 +1,11 @@ + +# this is used together with get_nextg_calc +ls = [1,2] +_next_calc = True + +while _next_calc: + try: + print(ls.pop()) + except IndexError: + print('finished') + _next_calc = False |