Adding text to loop in python
<p>I am curios how to do this in Python, Powershell no prob. Python will be the death of me.
Say I have a loop that prints a range, such as</p>

<p><code>print"\n".join(['{0:04}'.format(num) for num in xrange(0, 10000)])</code></p>

<p>This of course will return a list of </p>

<p>0000
0001
0002
0003
..... 9999</p>

<p>I am curious how to pipe this, or set the string as a variable so I could get reoccurring text before each joined string. Example, Test0000  Test0001 Test0002 .... Test9999. You get the picture.
I have set it as a variable and experimented with that, but I cannot seem to get how to include the Test in the joined string. My results so far have ended up with Test0000 0001 0002 blah blah blah.</p>

<p>Help would be appreciated.</p>