On Wed, 21 Feb 2018 07:10:30 +0000
The Natural Philosopher wrote:
> print(last==readpin()?((last=readpin()==OPENED)?"Opened":"Closed"):"");
>
> I knew one line was possible!
Not in python though which all the earlier examples are.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|