new to python here. I am trying to write a program that calculate the average word length in a sentence and I have to do it using the .split command. btw im using python 3.2
>>> sentence = "Hi my name is Bob" >>> words = sentence.split() >>> sum(map(len, words))/len(words) 2.6