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 great thing about Glasgow is that if there's a nuclear attack it'll
look exactly the same afterwards."
Billy Connolly
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|