Removed excessive print statements

This commit is contained in:
lukew3
2020-10-20 10:19:03 -04:00
parent fffb6d54ab
commit 507eb4ff76
4 changed files with 91 additions and 104 deletions

View File

@@ -1,5 +1,3 @@
# To use, paste at bottom of mathgen.py code, change line variable and remove all table rows in README.md except for the top 2 and run mathgen.py
# NOTE: not anymore. but still leaving this comment in.
from mathgenerator.mathgen import *
@@ -20,12 +18,9 @@ with open('mathgenerator/mathgen.py', 'r') as f:
lines = f.readlines()
allRows = []
# get the first line of the functions in mathgen.py
# line = lines.index('# Funcs_start - DO NOT REMOVE!\n') + 1
for item in wList:
myGen = item[2]
# NOTE: renamed 'sol' to 'solu' to make it look nicer
# print(item[3])
prob, solu = myGen()
prob = str(prob).rstrip("\n")
solu = str(solu).rstrip("\n")
@@ -37,15 +32,10 @@ for item in wList:
prob = array2markdown_table(prob)
solu = array2markdown_table(solu)
# instName = lines[line]
# NOTE: renamed 'def_name' to 'func_name' because it suits it more
#func_name = instName[:instName.find('=')].strip()
func_name = item[3]
row = [myGen.id, myGen.title, prob, solu, func_name]
print('added', item[1], '-', func_name, 'to the README.md')
# line += 1
# if line > len(lines):
# break
allRows.append(row)
with open('README.md', "r") as g: