To make this change we need to modify `mathweb/flask/app.py`
To make this change we need to modify mathweb/flask/app.py: Import the math module., Replace the custom recursive factorial() helper with math.factorial., Update getfactorial() to call math.factorial., Here is the patch: Begin Patch Update File: mathweb/flask/app.py @@ -from flask import Flask -from flask import Flask, +from flask import Flask +import math @@ -def factorial(n): "compute factorial"...
Aider System Prompts · 708 chars