title: Print within a loop in python
body: <p>I have two lists such as :</p>
  
  <pre><code>list1=["read1","read2","read3"]
  list2=["read4","read5","read6"]
  </code></pre>
  
  <p>and in order to generate a script I need to print them such as : </p>
  
  <pre><code>Programm -h -y -1 $read1,$read2,$read3 -2 $read4,$read5,$read6
  </code></pre>
  
  <p>I tried: </p>
  
  <pre><code>print("Programm -h -y -1 "+str([print("$"+i,",",end='') for i in list1]))+" -2" + +str([print("$"+i,",",end='') for i in list2])))
  </code></pre>
  
  <p>But it does work that way, does someone has an idea?</p>