Complete the code to import the Flask class.
from flask import [1]
The Flask class is imported from the flask package to create the 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 code to initialize SQLAlchemy with the app.
db = SQLAlchemy()
db.[1](app)The method to link the SQLAlchemy object to the Flask app is init_app.
Fill both blanks to define a simple model with an id primary key and a name column.
class User(db.Model): id = db.Column(db.[1], primary_key=True) name = db.Column(db.[2](50))
The id column uses Integer type and is primary key. The name column uses String with max length 50.
Fill all three blanks to create tables in the database after app context is pushed.
with app.[1](): db.[2]() print('[3] tables created!')
Use app_context() to push context, then call create_all() to create tables, and print a confirmation message.
