Q:

Extract first character of each word from the sentence string

I need to make a code that when you enter a text it takes the first letter from each word in the sentence you placed.  
For example, for sample string "I like to play guitar and piano and drums", it should print "Iltpgapad"

A:

Try something like this:
line = "I like to play guitar and piano and drums"
words = line.split()
letters = [word[0] for word in words]
print "".join(letters)

