From 20918c5a78ce8d4b4e12f3d51d83169e12be2024 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Mon, 19 Oct 2020 21:07:50 -0400 Subject: [PATCH] Rough fix of genList issue --- mathgenerator/__init__.py | 3 ++- test.py | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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]) +"""