String question - find all possible versions of a person's firstname

Nico Grubert nicogrubert at gmail.com
Tue Jan 10 18:58:31 CET 2006


Hi there,

I have a string 'Michèle' that represents the firstname of a person.

What's the best way to get all possible versions of this name if I 
consider to use these characters: e, è, é, ê

I'd like to have a function that returns a list of the following names 
when passing 'Michèle' as parameter to it:

'Michele'
'Michelè'
'Michelé'
'Michelê'

'Michêle'
'Michêlè'
'Michêlé'
'Michêlê'

'Michèle'
'Michèlè'
'Michèlé'
'Michèlê'

'Michéle'
'Michélè'
'Michélé'
'Michélê'


Thanks in advance,
Nico



More information about the Python-list mailing list