Re: Simple greatest common factor script
I have no idea how i missed that. Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Re: Simple greatest common factor script
I don't see how this script is able to divide by zero. If a and b switch places everything works ok. Have a look at your if-statements. It is possible, that both your if's are executed in one loop iteration (you can check this using pdb). You may want to try elif instead. - Patrick -- http:/