Skip to content

Commit

Permalink
write to file
Browse files Browse the repository at this point in the history
  • Loading branch information
nhurwitz committed Nov 15, 2014
1 parent 421a536 commit db2dd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/package_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def problem_answer_pairings(asgt):

solution_file = open("SOLUTIONS" + "-" + a_n + "-" + name, 'a')
print(r"\begin{solution}", file=solution_file)
print(asgt.problems[i].solution)
print(asgt.problems[i].solution, file=solution_file)
print(r"\end{solution}", file=solution_file)
problem_pairings.append(problem_file, solution_file)

Expand Down

0 comments on commit db2dd13

Please sign in to comment.