Hello. Help me please how to find the number of words containing the syllable "a" in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Hello. Help me please how to find the number of words containing the syllable "a" in python

how to find the number of words containing the syllable "lo" in python example:my name is Ramazon. Then print 2

17th Dec 2017, 7:57 AM
Пиров Мустафо
Пиров Мустафо - avatar
2 Answers
+ 1
a is a character. syllable is a sound. 'cheat' is one syllable. 'cheatING' has two syllables. try going over the strings tutorial in solo learn. if that doesn't help, see if this does. https://stackoverflow.com/questions/1155617/count-occurrence-of-a-character-in-a-string
17th Dec 2017, 10:59 PM
Lysis
Lysis - avatar
+ 2
ok thank you
18th Dec 2017, 8:58 AM
Пиров Мустафо
Пиров Мустафо - avatar