when i run this python code in python3 it shows different results from python2? why there are different values?
d = 0
x1 = 0
x2 = 1
y1 = 1
e=125
phi=238
temp_phi = phi
while e > 0:
print (e, temp_phi)
temp1 = temp_phi / e
print (temp1)
temp2 = temp_phi - temp1 * e
print (temp2)
temp_phi = e
e = temp2
x = x2 - temp1 * x1
y = d - temp1 * y1
x2 = x1
x1 = x
d = y1
y1 = y
print (d + phi)
if temp_phi == 1:
print (d + phi)