diff --git a/mathgenerator/__init__.py b/mathgenerator/__init__.py index 0a261d0..956697a 100644 --- a/mathgenerator/__init__.py +++ b/mathgenerator/__init__.py @@ -20,4 +20,5 @@ class Generator: def getGenList(): - return genList + correctedList = genList[-1:] + genList[:-1] + return correctedList diff --git a/test.py b/test.py index 7f2d993..9df861d 100644 --- a/test.py +++ b/test.py @@ -4,9 +4,10 @@ from mathgenerator import mathgen print(mathgen.addition()) 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: print(item[2]) +"""