Question: Write a python program that reads a word and prints the number of syllables in the word. For this program, assume the following rules are

Write a python program that reads a word and prints the number of syllables in the word. For this program, assume the following rules are the only ones you need to determine the number of syllables (there are some special case words that do not follow these rules and we will NOT test for those): Each vowel (a,e,i,o,u,y) counts as 1 syllable except as noted below A sequence of adjacent vowels count as 1 syllable An e at the end of a word does not count If the program determines there are no syllables, then set the count to 1 syllable

Here are some examples:

Please give me a word: harry

The word harry has 2 syllables.

Please give me a word: hairy

The word hairy has 2 syllables.

Please give me a word: hare

The word hare has 1 syllables.

Please give me a word:

the

The word the has 1 syllables.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!