Complete the code to import the Flask class.
from flask import [1]
The Flask class is imported from the flask module to create the app instance.
Complete the code to create a new 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 define a background task function.
@app.task def [1](): print('Task running')
The function name should be 'run_task' to match typical task naming conventions.
Fill both blanks to create a task queue and add a task.
from celery import [1] app = [2]('tasks')
Celery is imported and instantiated to create the task queue app.
Fill all three blanks to define and call a background task.
@app.task def [1](x, y): return x [2] y result = [3].delay(4, 5)
The function is named 'add', uses '+' to add, and calls add.delay to run asynchronously.
