Brian van den Broek schrieb:

If my original bit of code, the structure was like:

output_value = False
if condition:
    output_value = True
return output_value

Mine would be like yours if transformed to:

if condition:
    return True
return False


Hi Brian! Do you mean, that condition is something which is True od False? And if condition is True you want to return True? And if condition is False you want to return False?

So why not simlpy:

return condition

?

Regards,
Gregor

_______________________________________________
Tutor maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to