You can't because Boolean variables are immutable. If you need a function to change the value variable, use a return statement, and assign the return value to the variable.
def longerThatFive(s): return len(s)>5 t1=longerThanFive('abc') t2=longerThanFive('abcdef') print t1,t2
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