Rough fix of genList issue

This commit is contained in:
lukew3
2020-10-19 21:07:50 -04:00
parent ce79a2a94b
commit 20918c5a78
2 changed files with 6 additions and 4 deletions

View File

@@ -20,4 +20,5 @@ class Generator:
def getGenList(): def getGenList():
return genList correctedList = genList[-1:] + genList[:-1]
return correctedList

View File

@@ -4,9 +4,10 @@ from mathgenerator import mathgen
print(mathgen.addition()) print(mathgen.addition())
print(mathgen.genById(79)) print(mathgen.genById(79))
print(mathgen.getGenList())
list = mathgen.getGenList()
# prints the order of generators in the list # prints each generator in genList
"""
list = mathgen.getGenList()
for item in list: for item in list:
print(item[2]) print(item[2])
"""