| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: How to use while loop |
On Wed, 21 Feb 2018 17:44:04 +0000, The Natural Philosopher
declaimed the following:
>On 21/02/18 14:34, Dennis Lee Bieber wrote:
>> On Wed, 21 Feb 2018 07:10:30 +0000, The Natural Philosopher
>> declaimed the following:
>>
>>>>
>>> print(last==readpin()?((last=readpin()==OPENED)?"Opened":"Closed"):"");
>>>
>>> I knew one line was possible!
>>
>> That's not Python. Assignment is not an expression in Python but a
>> statement.
>>
>
>Oh sorry. I thought we were talking 'C'
The OP code -- while rather dense looking (tab those comments over) --
was obviously Python...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3) |
|
| SOURCE: echomail via QWK@docsplace.org | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.