Apr-02-2017, 08:33 PM
(Apr-02-2017, 02:52 AM)Skaperen Wrote: bonus points: who can show how to do this in 1 statement for a sequence
if x < len(s): something = s[x] else: something = False
something=s[x] if x < len(s) else Falseor
something=[False,s[x]][x < len(s)]
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net