I\'ve recently been studying the Euclidean Algorithm and have been attempting to replicate it below in python to find the egcd of a function. Looking at the best case, I noticed