You print count (number), but your test expects the letter e .
In addition, the greater the Pythonic method of counting vowels will be an understanding of the list :
>>> len([letter for letter in 'test' if letter in vowels]) 1
Want to see the vowels you found? Just omit this leading len function:
>>> [letter for letter in 'stackoverflow' if letter in vowels] ['a', 'o', 'e', 'o']
Mark rushakoff
source share