Python Flask Basics Welcome to Flask Multiply View

Task 4 of 5 doesn't let me complete it (Didn't get a <something> red error pls help!

flask_app.py
from flask import Flask

app = Flask(__name__)

@app.route('/multiply')
@app.route('/multiply/<int:int1>/<int:int2>')
@app.route('/multiply/float:int1>/<int:int2>')
@app.route('/multiply/<int:int1>/<float:int2>')
@app.route('/multiply/<float:int1>/<float:int2>')
def multiply(int1=5, int2=5):
    result = str(int1 * int2)
    return result

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 59,736 Points

You are very close. There is a missing left angle bracket < in the third route decorator.

Post back if you need more help. Good luck!!

thx just noticed, I must've been high