+ 6
gcd = gcd(a,b) # this will shadow gcd() function so on next call it is 'with variable with braces' is not function call with parameters.. .
Take different names for function and variable.
+ 3
I guess I would wrap the conditions in a while loop. Then I would create a control variable and you change its value depending if you want to repeat or not.
+ 1
Why do you import the gcd form math ? I though the challenge was to compute it by yourself.
+ 1
Actually, you want to find a way how to loop through your conditions ?