Euclid's Algorithm in Python?

Erik the Red the.g.man.x at gmail.com
Thu Aug 4 22:27:12 EDT 2005


In Fundamental Algorithms (The Art of Computer Programming), the first
algorithm discussed is Euclid's Algorithm.

The only idea I have of writing this in python is that it must involve
usage of the modulo % sign.

How do I write this in python?




More information about the Python-list mailing list