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 trial

Python

angelod
angelod
6,694 Points

what's the point of this stuff

@app.route('/add/<int:num1>/<int:num2>')
def add(num1, num2):
    return '{} + {} = {}'.format(num1, num2, num1 + num2)

Like what's even the point of this. Who's going type this in the url.

1 Answer

Steven Parker
Steven Parker
230,274 Points

This kind of URL is not likely to be typed into a browser address bar by a user. Instead, it's probably going to be a link created by a developer or generated by a server process or client script that appears on the page as a phrase, button, or image that the user just clicks on.