We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 132. Find the word with the most vowels

8 out of 8 users completed this Bite ...
Will you be Pythonista #9 to crack this Bite?
Average Bite difficulty 1-10 rating: 1.0
» You can do it! 😌

Finish the get_word_max_vowels function below that takes a text string as its input argument and returns a tuple of the word that has the most vowels and its count.

For example running the function on the first paragraph of the Python tutorial:

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

It returns: ('object-oriented', 6). In the tests we check 5 paragraphs more of this text. Good luck and have fun!

Github login button