A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
When generating a problem for algebra/expanding, this error may come up:
Traceback (most recent call last):
File "adoptGenerator.py", line 40, in <module>
main() # makes readme
File "/home/luke/src/mathgenerator/scripts/makeReadme.py", line 134, in main
write_subject_table(subject, wList)
File "/home/luke/src/mathgenerator/scripts/makeReadme.py", line 110, in write_subject_table
write_list.append(gen_to_row_string(item))
File "/home/luke/src/mathgenerator/scripts/makeReadme.py", line 58, in gen_to_row_string
prob, solu = myGen()
File "/home/luke/src/mathgenerator/mathgenerator/generator.py", line 26, in __call__
return self.func(*args, **kwargs)
File "/home/luke/src/mathgenerator/mathgenerator/funcs/algebra/expanding.py", line 37, in gen_func
elif p3[0] == "+":
IndexError: string index out of range
Bug Description
When generating a problem for algebra/expanding, this error may come up: