python count total no of word in a text

38

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

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

Comments

Submit
0 Comments