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

loader-image
Le prix initial était : € 11,00.Le prix actuel est : € 10,00.
Le prix initial était : € 6,00.Le prix actuel est : € 5,00.



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

Leave a Reply

Your email address will not be published. Required fields are marked *