Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'creighton': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tuple': 0.09; 'unpack': 0.09; 'index': 0.13; 'middle,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:assistance': 0.16; 'this).': 0.16; 'laura': 0.18; 'url:home': 0.18; 'input': 0.18; '2015': 0.20; 'first,': 0.20; 'trying': 0.22; 'sat,': 0.23; "i've": 0.25; 'header:X-Complaints-To:1': 0.26; 'order.': 0.27; '+0200,': 0.27; '(my': 0.29; 'sometimes': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'desired': 0.37; 'charset:us-ascii': 0.37; 'names': 0.38; 'to:addr:python.org': 0.40; 'still': 0.40; 'subject:Need': 0.61; 'jul': 0.72; '>of': 0.84; '>you': 0.84; 'homework': 0.84; 'dennis': 0.91; 'birth': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Need assistance Date: Sat, 18 Jul 2015 12:18:26 -0400 Organization: IISS Elusive Unicorn References: <225d4ac6-3b88-4844-805b-b4b00cd62ef4@googlegroups.com> <55AA2BDE.6050605@web.de> of "Sat, 18 Jul 2015 12:35:10 +0200." <55AA2BDE.6050605@web.de> <201507181216.t6ICGBrY022256@fido.openend.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-217-115.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437236313 news.xs4all.nl 2886 [2001:888:2000:d::a6]:38984 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94056 On Sat, 18 Jul 2015 14:16:11 +0200, Laura Creighton 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). Simple .split() and a {HP calculator} roll operation should get the desired order. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/