Creating a loop over existing function that changes the one parameter the function takes into many paramaters
<p>So this is what I wish to do. I have a function and some paramaters:</p>

<pre><code>Names = ["Whaaaaa", "whoooo", "mamo", "tete", "tetsae"]
QC_ID = 100
NAME_FMT = "DEVICE_%s_%s"

def createE(Names, size = None):
    eName = NAME_FMT % ((",").join(Names[0]), "*")
    return eName
</code></pre>

<p>What I want to do is, without changing the function, make it print out the text of extent name over and over depending on the number I input. So for example it would be something like this:</p>

<pre><code>createE(Names[0:3])
DEVICE_100_Whaaaaa
DEVICE_100_whoooo
DEVICE_100_mamo
</code></pre>

<p>What the function does now is this:</p>

<pre><code>createE(Names[0:3])
DEVICE_100_Whaaaaa, DEVICE_100_whoooo, DEVICE_100_mamo
</code></pre>

<p>And finally I want to take the output (because <code>DEVICE_100_Whaaaaa</code> would create some output) and add it to a list:</p>

<pre><code>e = []
e.append(createE(Names[0:3]))
print e
["Hello", "I", "Am"]
</code></pre>

<p>The problem I'm having with is this <code>createE(Names[0:3])</code> I need it to print in every line and it does not do it. :( I can't change the function itself. </p>

<p>Any ideas would be appreciated.</p>
