Need assistance

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jul 18 13:34:04 EDT 2015


On 18/07/2015 17:18, Dennis Lee Bieber wrote:
> On Sat, 18 Jul 2015 14:16:11 +0200, Laura Creighton <lac at openend.se>
> declaimed the following:
>
>> You don't have to index them.  You can unpack them into a tuple
>> of first, middle, last
>>
>> Laura  (who is trying not to do somebody's homework for them, since
>> I'm not the person who needs to learn this).
>
> 	That only works if the input IS three names (My Birth Certificate reads
> "Dennis Lee James Bieber"; and I often used to include my confirmation name
> into the thing; I've grown out of that phase but do still sometimes use
> dljjb as initials).

This https://www.python.org/dev/peps/pep-3132/ might be handy in this case.

>
> 	Simple .split() and a {HP calculator} roll operation should get the
> desired order.
>

What is an {HP calculator} roll operation?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list