Mar-22-2017, 01:38 PM
def joingenerator(l): yield false,l[0] for x in l[1:]: yield true,x for dojoin,x in joingenerator(somelist): if dojoin: print " and " print x
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