Last active
September 25, 2019 15:07
-
-
Save cabreraalex/d07839a92e4fe7f1ee6658d6cfcd7836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
import random | |
app = Flask(__name__) | |
@app.route("/rand") | |
def hello(): | |
return str(random.randint(0, 100)) | |
if __name__ == "__main__": | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment