Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Handling 3 operands in an expression without raising an exception Date: Fri, 27 Sep 2013 17:00:59 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 21 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1380301259 20566 64.122.56.22 (27 Sep 2013 17:00:59 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 27 Sep 2013 17:00:59 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:54898 On 2013-09-27, ?????????? wrote: > Sure your method follows the the logic in a straighforward way > step-by-step but i just dont want to spent almost 20 lines of code just > to calculate 2 variables(city and host). Does your provider charge you per line of code? If all that matters is the number of lines of code then use this: city,host = 0,0 Only _1_ nice short line of code. Happy? -- Grant Edwards grant.b.edwards Yow! If Robert Di Niro at assassinates Walter Slezak, gmail.com will Jodie Foster marry Bonzo??