blob: 34239d37723a190c7009efe63791c2428334d85c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
""" To register a new Exercise, append module name to EXERCISES """
from exercise import Exercise
""" TODO naming convention for 'topic' (aka exercise name) """
Exercise.EXERCISES = { 'addsub_simp': "ExAddSimp", \
'exaddsub': "ExAddSub", \
'exmult': "ExMult", \
'passten': "ExPassTen", \
'extimesadd': "ExTimesAdd", \
'times_div': "ExTimesDiv" }
__all__ = []
for file_name in Exercise.EXERCISES.values():
__all__.append(file_name.lower())
|