Hey all!
I'm new to programming so please be patient if my question is obvious or listed somewhere else (I've looked!)
I want to be able to enter a sentence, split the sentence into septate words and then take the first letter of each word to create a new string. So that:
"the brown fox"
returns:
"tbf"
So far all I can do is split the sentence into the separate words:
import string
def main():
print "This program splits the words in a sentence"
print
p = raw_input("Enter a sentence: ")
words = string.split(p)
print "The split words are:", words
main()
Thanks for any help!