python count total no of word in a text

29

"abcdabcva".count("ab")
# credit to Stack Overflow user in source link

sentence.lower().split().count(word)

Comments

Submit
0 Comments