mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Rough fix of genList issue
This commit is contained in:
@@ -20,4 +20,5 @@ class Generator:
|
|||||||
|
|
||||||
|
|
||||||
def getGenList():
|
def getGenList():
|
||||||
return genList
|
correctedList = genList[-1:] + genList[:-1]
|
||||||
|
return correctedList
|
||||||
|
|||||||
7
test.py
7
test.py
@@ -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])
|
||||||
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user