Python Principles

Counting syllables

Define a function named count that takes a single parameter. The parameter is a string. The string will contain a single word divided into syllables by hyphens, such as these:


Your function should count the number of syllables and return it.

For example, the call count("ho-tel") should return 2.

Lesson completed

Congratulations! You have finished the lesson "".

Keep learning

Solution Help Reset Submit Answer Submit Run Code Run