Here , we are going to learn basic python code to make function which can create list of word from given string. Code: def extWord(strVar): wrdList = start = 0 end = 0 for i in strVar: if i == ' ': wrdList.append(strVar) start = end + 1 end += 1 wrdList.append(strVar) return wrdList Output: