I am a newbie to python. I am just working on a program to count number of letters in each words of a sentence. That includes punctuation too. If the sentence is "This is it!" my program should give "4 2 3". First I thought I can convert this string into word list and then count the letters of the word but I am totally lost on that. Later used string.split() to count the number of words. But still couldn't figure out how to calcuate the number of letters in a word that I splitted.
I would appreciate if someone teach me the concept on how to acheive it. I searched alot on net but couldnt actually find one.