Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialClay Terry
Courses Plus Student 5,350 PointsI believe I have a correct answer that treehouse is not accepting. I have several @app.routes and int/float combos
why won't this pass?
from flask import Flask
app = Flask(__name__)
@app.route('/multiply')
@app.route('/multiply/<int:arg1>/<int:arg2>')
@app.route('/multiply/<float:arg1>/float:arg2>')
@app.route('/multiply/<int:arg1>/<float:arg2>')
@app.route('/multiply/<float:arg1>/<int:arg2>')
def multiply(arg1=5, arg2=5):
return "{}".format(arg1 * arg2)
1 Answer
James J. McCombie
Python Web Development Techdegree Graduate 21,199 PointsHi line 7 missing a '<' before 'float'