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

 

david.white@denison.edu cs111fall2019 > vowels
prev  |  next  |  chance

Write a function vowels(word) that uses the count method to return the number of vowels in the string word. Note that word may contain upper and lower case letters. You should not count Y as a vowel.


vowels('shorty') → 1
vowels('LONGER') → 2
vowels('a string with spaces AND $') → 6

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

def vowels(word):

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

Copyright Nick Parlante 2017 - privacy