Python list manipulation based on indexing
<p>I have two lists:</p>

<p>The first list consists of all the titles of various publications where as the second list consists of all the author names.</p>

<pre><code>list B = ['Moe Terry M 2005 ', 'March James G and Johan P Olsen 2006 ', 'Kitschelt Herbert 2000 ', 'Bates Robert H 1981 ' , .......]

list A = ['"Linkages between Citizens and Politicians in Democratic Polities,"', '"Winners Take All: The Politics of Partial Reform in Postcommunist \n\nTransitions,"', '"Inequality, Social Insurance, and \n\nRedistribution."', '"Majoritarian Electoral Systems and \nConsumer Power: Price-Level Evidence from the OECD Countries."']
</code></pre>

<p>I am running scholar.py as a bash command. The syntax goes like this</p>

<pre><code>scholar = "python scholar.py -c 1 --author " + str(name) + "--phrase  " + str(title) 
</code></pre>

<p>Now, what I am trying to do is get each title and author in order so that I can use them with scholar.
But I am not able to figure out how can I get the first author name with first title .</p>

<p>I would have used indexing if the lists were small.</p>

<p>Is this is what you are looking for?</p>

<pre><code>list B = ['Moe Terry M 2005 ', 'March James G and Johan P Olsen 2006 ', 'Kitschelt Herbert 2000 ', 'Bates Robert H 1981 ' , .......]

list A = ['"Linkages between Citizens and Politicians in Democratic Polities,"', '"Winners Take All: The Politics of Partial Reform in Postcommunist \n\nTransitions,"', '"Inequality, Social Insurance, and \n\nRedistribution."', '"Majoritarian Electoral Systems and \nConsumer Power: Price-Level Evidence from the OECD Countries."']

for i,j in zip(B,A):
     print i, j #python 2.x
     print(i , j) #python3.x
</code></pre>

python list