In Python, how do I make an acronym of a given string?
Like, input string:
'First Second Third'
Output:
'FST'
I am trying something like:
>>> for e in x:
print e[0]
But it is not working... Any suggestions on how this can be done? I am sure there is a proper way of doing this but I can't seem to figure it out. Do I have to use re
?