Complete the code to import the PythonOperator from Airflow.
from airflow.operators.[1] import PythonOperator
The PythonOperator is imported from airflow.operators.python.
Complete the code to define a Python function named 'my_task' that prints 'Hello Airflow'.
def [1](): print('Hello Airflow')
The function must be named my_task as referenced later in the operator.
Fix the error in the PythonOperator task by completing the argument that specifies the Python callable.
task = PythonOperator(
task_id='print_hello',
python_callable=[1],
dag=dag
)The python_callable argument expects the function name without parentheses or quotes.
Fill both blanks to create a DAG with id 'my_dag' and schedule interval '@daily'.
dag = DAG(
dag_id=[1],
schedule_interval=[2]
)The DAG id should be 'my_dag' and the schedule interval '@daily' for daily runs.
Fill all three blanks to create a PythonOperator named 'task' with task_id 'print_hello', using the function 'my_task' and the DAG 'dag'.
task = [1]( task_id=[2], python_callable=[3], dag=dag )
The operator must be PythonOperator, the task_id a string 'print_hello', and the callable the function my_task.