Python Flask Basics Welcome to Flask Multiply View

Julian Eysmont
Julian Eysmont
496 Points

Add a view named multiply. Give multiply a route named /multiply. Make multiply() return the product of 5 * 5. Remember,

what am i doing wrong?

it says that there is no view named multiply()

flask_app.py
from flask import Flask

app = Flask(__name__)

@app.route("/mulitply")
def multiplay():
    return "{}".format(5*5)

2 Answers

Jeremy Caudle
Jeremy Caudle
18,928 Points

Hi Julian, I hope you’ve had some luck spotting the problem. If you haven’t sorted it out yet, double-check your view and route names for misspellings.

Julian Eysmont
Julian Eysmont
496 Points

ok i see the mistake - not mulitply, but multiply - i made the changes and the same problem still exists