The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 90 Weeks Ago, 6 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Write a program called syllables.py 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):
Here are some examples:
Please give me a word:Â harry
The word harry has 2 syllables.
Another example:
Please give me a word:Â hairy
The word hairy has 2 syllables.
Another example:
Please give me a word:Â hare
The word hare has 1 syllables.
And one more example:
Please give me a word:Â the
The word the has 1 syllables.