Okay...I'm back again for the next program...here's what i have so far
print "Euclid's Method"
a= raw_input(("Enter first number "))
b= raw_input(("Enter second number "))
def euclid(a,b):
while b != 0:
a, b = b, a%b
return a My question is, how do I get it to print out the proper number?
If i use
print a , it shows the original value for a
I also tried
print euclid(a, b) but this kicked back an error
Traceback (most recent call last):
File "C:/Users/Tony/Documents/Module 2/euclid", line 11, in <module>
print euclid(a, b)
File "C:/Users/Tony/Documents/Module 2/euclid", line 9, in euclid
a, b = b, a%b
TypeError: not all arguments converted during string formatting Thanks for any help