Skip to content

Instantly share code, notes, and snippets.

@leozz37
Created August 16, 2020 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leozz37/e066c25cc35014d20b17164c9fa598b0 to your computer and use it in GitHub Desktop.
Save leozz37/e066c25cc35014d20b17164c9fa598b0 to your computer and use it in GitHub Desktop.
Snippet used for a Medium article
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello, Medium!'
app.run(host='0.0.0.0', port=8000)
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