Complete the code to set the DAG version using a variable.
dag_version = '[1]'
The DAG version is often set as a simple string like 'v1' to track versions clearly.
Complete the code to import the DAG version from a configuration file.
from config import [1]
The variable 'dag_version' is commonly used to hold the DAG version in config files.
Fix the error in the DAG version check condition.
if dag_version [1] 'v2': print('Using version 2 DAG')
Use '==' to compare values in Python, '=' is for assignment.
Fill both blanks to create a dictionary mapping DAG versions to file paths.
dag_files = {'v1': '[1]', 'v2': '[2]'}Each DAG version should map to its specific file path for clarity and version control.
Fill all three blanks to filter DAG versions and print active ones.
active_dags = {k: v for k, v in dag_files.items() if k [1] 'v1' and v [2] '.py' and 'latest' not in v[3]The code filters out version 'v1', checks if file ends with '.py', and uses parentheses for method call.
