title: create tasks in Airflow by looping over a list and pass arguments
body: <p>edit: 
  <strong>This will work, I defined ex_func_airflow(var_1 = i) which was causing the issue</strong></p>
  
  <p>I would like to create tasks in airflow by looping on a list.</p>
  
  <pre><code>tabs = [1,2,3,4,5]
  for i in tabs:
      task = PythonOperator(
      task_id = name,
      provide_context=False,
      op_args  = [i],
      python_callable=ex_func_airflow,
      dag=dag)
      task_0 &gt;&gt; task &gt;&gt; task_1
  </code></pre>
  
  <p>When this is run in airflow the argument that is passed is always the last element in that list.</p>
  
  <p>So i'm essentially running:</p>
  
  <pre><code>ex_func_airflow(6) 
  </code></pre>
  
  <p>five times instead of running</p>
  
  <pre><code>ex_func_airflow(1)
  ex_func_airflow(2)
  ex_func_airflow(3)
  </code></pre>
  
  <p>..etc.</p>
  
  <p>How would can I pass the correct arguments for each task? </p>