On 18/07/2015 17:18, Dennis Lee Bieber wrote:
On Sat, 18 Jul 2015 14:16:11 +0200, Laura Creighton <l...@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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to