Suppose i have two lists in python a list of first names and a list of last names
<pre><code>firstName = ['abcd','efghi','jkl','mnopqr']
lastName  = ['xyz','pqrst','uvw','klmn']
</code></pre>

<p>my desired output is </p>

<pre><code>abcd xyz a.xyz@example.com
efghi pqrst e.pqrst@example.com 
jkl uvw j.uvw@example.com 
mnopqr klmn m.klmn@example.com 
</code></pre>

<p>I have tried various methods and failed.The closest i could come up with was</p>

<pre><code>for x,y in zip(firstName,lastName):
    print(x,y)
</code></pre>

<p>What should i do?</p>

<p>This prints the output you're looking for. Did you really just want to print it ?</p>

<pre><code>for x,y in zip(firstName,lastName):
    print (x,y, x[0] + r'.' + y + r'@example.com')
</code></pre>

python