Solution Exercise 21: number of vowels in a Python string

Exercise 21

Write a Python program to count the number of vowels in a given string. Example for the string s='unconstitutionally' the program must return the following message: "The string unconstitutionally has 8 vowels".

Solution

 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercise 21: number of vowels in a Python string

Leave a Reply