Python Flask Basics Welcome to Flask Multiply View

Carlos Campos
Carlos Campos
Full Stack JavaScript Techdegree Student 4,489 Points

what is wrong?

not sure what I'm doing wrong

flask_app.py
from flask import Flask

app = Flask(__name__)

@app.route("/multipy")
@app.route("/multiply/<num1>/<num2>")
def multiply(num1=5, num2=5):
    R = int(num1) * int(num2)
return str(R)

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,519 Points

You have misspelled multiply here:

@app.route("/multipy")

and your return statement should be indented