This assignment will give you practice in getting a Python program to run and submitting homework to the home script. For this assignment you are allowed to work together to get the program to run. This way you can help each other through any complications you may have with getting started in python.

The Task

Simply write the Euclid algorithm in a form that takes two numbers from input and prints the gcd. The code does not need to check for valid input. Yes, this is simply the code we did in class. It is that easy. But you need to get it typed in and submitted. You can use any algorithm you desire as long as it finishes in the allotted time of 2 seconds for the test data I provide. It must work for any pair of positive integers. There is nothing tricky here.

Submission

Your homework should be submitted as a simple ASCII text file in the format shown in class with the '#!/usr/local/bin/python3' as the first line. Your code must be in Python 3. Use the homework submission page linked from the main class page. That is the only way to submit homework. You can submit as many times as you like. The LAST file you submit BEFORE the deadline will be the one graded. For all submissions you will receive email at your uidaho.edu email address giving you some automated feedback on the unpacking and running of code and possibly some other things that can be autotested. I will read the results of the runs and issue grades based on that.

Have fun.