Complete the code to import the BashOperator from Airflow.
from airflow.operators.[1] import BashOperator
The BashOperator is imported from airflow.operators.bash_operator.
Complete the code to create a BashOperator task that runs 'echo Hello World'.
task = BashOperator(task_id='print_hello', bash_command='[1]')
The bash_command should be the shell command to run. Here, echo Hello World prints the message.
Fix the error in the BashOperator task by completing the missing argument.
task = BashOperator([1]='print_date', bash_command='date')
bash_command instead of task_id as the first argument.task_id argument.The task_id argument is required to name the task uniquely.
Fill both blanks to create a BashOperator that runs a command and assign it to a DAG.
task = BashOperator(task_id='list_files', bash_command='ls -l', [1]=[2])
default_args instead of dag.The dag argument assigns the task to the DAG object named my_dag.
Fill all three blanks to create a BashOperator with task_id, bash_command, and dag assigned.
task = BashOperator([1]='run_script', [2]='sh script.sh', [3]=my_dag)
The three main arguments are task_id, bash_command, and dag.
