Complete the code to import Flask correctly.
from flask import [1]
The Flask class is imported from the flask package to create an app instance.
Complete the code to create a Flask app instance.
app = [1](__name__)The Flask class is called with __name__ to create the app instance.
Fix the error in the route decorator syntax.
@app.route([1]) def home(): return "Hello, Flask!"
The route path must be a string, so it needs quotes around '/'.
Fill both blanks to run the Flask app in debug mode on port 5000.
if __name__ == '__main__': app.run(debug=[1], port=[2])
Debug mode is enabled with True and default port 5000 is used.
Fill all three blanks to create a simple route that returns 'Welcome!' when visiting '/welcome'.
@app.route([1]) def [2](): return [3]
The route decorator uses the path '/welcome', the function is named welcome, and it returns the string "Welcome!".
