Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python flask replit

from flask import Flask # Import Flask Class
app = Flask(__name__) # Create an Instance

@app.route('/') # Route the Function
def main(): # Run the function
	return 'Hello World'

app.run(host='0.0.0.0', port=5000, debug=True) # Run the Application (in debug mode)
Source by replit.com #
 
PREVIOUS NEXT
Tagged: #python #flask #replit
ADD COMMENT
Topic
Name
9+1 =