diff --git a/docs/voice.md b/docs/voice.md index 767445f23..ccd1da2e6 100644 --- a/docs/voice.md +++ b/docs/voice.md @@ -8,17 +8,22 @@ #### /voice +
+ +“add a factorial endpoit that uses math factorial” +
+ > Recording... Press ENTER when done speaking... + #### Add a factorial endpoint that uses math.factorial. To add a factorial endpoint to the Flask application, we need to modify the `app.py` file. Here are the steps: -1. Import the `factorial` function from the `math` module at the top of the file. -2. Add a new route `/fact/` to the Flask application. -3. In the function for this route, call `math.factorial(x)` and return the result as a string. +1. Add a new route `/fact/` to the Flask application. +2. In the function for this route, call `math.factorial(x)` and return the result as a string. Here is the *edit block* for these changes: