Complete the code to push a value to XCom in an Airflow task.
ti.[1](key='sample_key', value='hello')
The method xcom_push is used to send data from one task to another in Airflow.
Complete the code to pull a value from XCom in an Airflow task.
value = ti.[1](key='sample_key', task_ids='task_a')
The method xcom_pull retrieves data sent by another task via XCom.
Fix the error in the code to correctly pull XCom data from a specific task.
result = ti.xcom_pull(key=[1], task_ids='task_b')
The key parameter must be a string, so it needs quotes. Double quotes or single quotes both work.
Fill both blanks to push and then pull a value using XCom in Airflow.
ti.[1](key='data', value=42) retrieved = ti.[2](key='data', task_ids='task_c')
Use xcom_push to send data and xcom_pull to receive it.
Fill all three blanks to create a dictionary comprehension that pulls XCom values greater than 10.
results = {task_id: ti.[1](key='value', task_ids=task_id) for task_id in tasks if ti.[2](key='value', task_ids=task_id) [3] 10}Use xcom_pull to get values and filter those greater than 10 with >.
