Created
August 16, 2020 09:34
-
-
Save leozz37/e066c25cc35014d20b17164c9fa598b0 to your computer and use it in GitHub Desktop.
Snippet used for a Medium article
This file contains 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 | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return 'Hello, Medium!' | |
app.run(host='0.0.0.0', port=8000) |
This file contains 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
def calc(x, y): | |
return x + y | |
def test_calc(): | |
assert 5 == calc(2, 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment