Skip to content

Instantly share code, notes, and snippets.

@oxalorg
Created June 25, 2015 15:14
Show Gist options
  • Save oxalorg/e7dc40a099bad92fb752 to your computer and use it in GitHub Desktop.
Save oxalorg/e7dc40a099bad92fb752 to your computer and use it in GitHub Desktop.
from flask import Flask
app = Flask(__name__)
@app.route("/<int:x>-<int:y>")
def sum(x,y):
return ("Sum of x + y = " + str(x+y))
if __name__ == '__main__':
app.debug = True
app.run(host="127.0.0.1", port=8800)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment