pyassistant

Count Vowels in String

Write a function that takes a string and returns the number of vowels (a, e, i, o, u) it contains. The function should be case-insensitive.

Example:

Input:
"Hello World"
Output:
3

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.