From 8bcbce253201e97d73ea1f115ad2649e6a2f03f4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 10 Aug 2023 18:33:47 -0300 Subject: [PATCH] added speech bubble --- docs/voice.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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: