#! /usr/bin/python

'''
Exercice du livre sur Python 3.

Ce code est diffusé sous la licence GPLv3 (http://www.gnu.org/licenses/gpl.html).
Copyright © 2010 Harold Erbin <harold.erbin@gmail.com>
'''

string = 'Une chaine quelconque.'

vowels = 'aeiouy'
vowels_counter = 0

for c in string:
    if c in vowels:
        vowels_counter += 1

print('La chaine comporte', vowels_counter, 'voyelles.')

