

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Sets
incomplete
2: Sets Quiz
incomplete
3: Vowels
incomplete
4: Set Subtraction
incomplete
This lesson's interactive features are locked, please to keep using them
The anti-spam team at Fantasy Quest is doing text analysis on players' in-game chats.
Complete the count_vowels function. It takes a string and returns:
We are only interested in the 5 vowels: a, e, i, o, u, and their capitalized versions. Treat uppercase and lowercase vowels as separate. For example, "A" and "a" are not the same.
for char in text:
# do stuff
in the set of vowels:
my_new_set = set()
my_new_set = {"apple", "banana", "grape"}