Can't combine two strings togetger
<p>When I was doing some tricks with strings,I can't combine the string <code>word[0]</code> with word. I thought this is because they are from the same string. If so, what can I do?    </p>

<pre><code>def pig_it(text):
    l1 = text.split(' ')
    l2 =[]
    for word in l1:
        first_letter = word[0]
        new = word + first_letter +'ay'
        new = new.replace(new[0], '')
        l2.append(new)
    return ' '.join(l2)

print pig_it(('my name is frankling'))
</code></pre>

<p>Its a little unclear about what you want to achieve with the above code but I rand it anyways and the code works according to the logic you have written the code</p>

<p>My out put was:</p>

<p>yay ameay say ranklingay </p>

<p>In case you want to do some thing specific, update the question and make it a little clear then probably i can help better.</p>

python string python-2.7