id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

ferrer@hendrix.edu > num_vowels
prev  |  next  |  chance

Write a function that counts the number of vowels in a given string. For this purpose, vowels are 'a', 'e', 'i', 'o', and 'u'.


num_vowels('hello') → 2
num_vowels('goodbye') → 3
num_vowels('iconic') → 3

...Save, Compile, Run (ctrl-enter)

def num_vowels(s):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy