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

2006-01-11 Thread bonono
Nico Grubert wrote: > > This sounds like a homework problem. You might try splitting the name > > at the e's, check the length of the resulting list and do that many > > nested loops. > > This was my idea too but I am wondering if there are any scripts for > tasks like this. > > Nico def combine

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

2006-01-10 Thread Nico Grubert
> This sounds like a homework problem. You might try splitting the name > at the e's, check the length of the resulting list and do that many > nested loops. This was my idea too but I am wondering if there are any scripts for tasks like this. Nico -- http://mail.python.org/mailman/listinfo/py

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

2006-01-10 Thread Jeff Gercken
This sounds like a homework problem. You might try splitting the name at the e's, check the length of the resulting list and do that many nested loops. On 1/10/06, Nico Grubert <[EMAIL PROTECTED]> wrote: > Hi there, > > I have a string 'Michèle' that represents the firstname of a person. > > What

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

2006-01-10 Thread Nico Grubert
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 parame