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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started